IE8页面打印问题
下面这段页面打印的JavaScript代码,原来在IE6是可以调用的,但是在IE8却不适用了请问一下,有没有IE8适用的打印代码?
或者,有什么方法解决这个问题。。。。。
function PrintReport() {
var yemei;
var yewei;
yemei = String("<%= lblyemei.text %>");
yewei = String("<%= lblyewei.text %>");
sPrint.style.display = 'none';
factory.printing.header = yemei;
factory.printing.footer = yewei;
factory.printing.topMargin = 0.2;
factory.printing.bottomMargin = 0.2;
factory.printing.leftMargin = 0.4;
factory.printing.rightMargin = 0.4;
factory.printing.paperSize = 9;
factory.printing.print(false);
document.all.WebBrowser.ExecWB(6, 6);
//document.all.WebBrowser.ExecWB(45,1);
sPrint.style.display = 'block';
}