我将情况做一下简单的说明:
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打
}
}
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打
}
}
我用的是A4的纸,但是现在效果还是那样的,很郁闷了,我的QQ是493913082等待你解答!!