我将情况做一下简单的说明:
1.打印的时候第一页是白页
2.有时候还会出现第二页也是白页
3.预览的时候也是会有1张白页。
请教各位兄弟,这样的问题如何解决,
function printsetup(){
   
    
    document.all.WebBrowser.SetPageFooter="";
    document.all.WebBrowser.SetPageHeader="";
    document.all.WebBrowser.execwb(8,1);// 打印页面设置
}
function printpreview(){
    <%if ((listm.size()/10)>1) {%>
document.all.p0[0].className="none";
<%}%>
document.all.pr.style.display='block';
    document.all.pr.style.display = 'none';
    document.all.WebBrowser.ExecWB(7,1); // 打印页面预览
    document.all.pr.style.display='';
    document.all.pr.style.display = '';
}
function printit(){
    if (confirm('确定打印吗?')){
     <%if ((listm.size()/10)>1) {%>
      document.all.p0[0].className="none";
      <%}%>
      document.all.pr.style.display = 'none';
      document.all.WebBrowser.ExecWB(6,1);
      document.all.WebBrowser.fnSetPrintOrientation(0);//0   \u70BA\u6A6B打,1\u70BA\u8C4E打
     }
}