代码如下:
<OBJECT id="factory" codeBase="report/ScriptX.cab#Version=5,60,0,360" width="0" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" VIEWASTEXT>
<PARAM NAME="__PX__disablePrint" VALUE="1008">
</OBJECT>
<script>
function print(top,bottom,left,right)
{
factory.printing.portrait = true;
factory.printing.paperSize = "A4";
factory.printing.header = "";
factory.printing.footer = "";
factory.printing.leftMargin = left;
factory.printing.topMargin = top;
factory.printing.rightMargin = right;
factory.printing.bottomMargin = bottom;
}
</script>其它的功能都很正常,现在的问题就是factory.printing.paperSize = "A4"这句话总是报错,请问如何才能做到正确设置纸张大小,望高手解答。
<OBJECT id="factory" codeBase="report/ScriptX.cab#Version=5,60,0,360" width="0" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" VIEWASTEXT>
<PARAM NAME="__PX__disablePrint" VALUE="1008">
</OBJECT>
<script>
function print(top,bottom,left,right)
{
factory.printing.portrait = true;
factory.printing.paperSize = "A4";
factory.printing.header = "";
factory.printing.footer = "";
factory.printing.leftMargin = left;
factory.printing.topMargin = top;
factory.printing.rightMargin = right;
factory.printing.bottomMargin = bottom;
}
</script>其它的功能都很正常,现在的问题就是factory.printing.paperSize = "A4"这句话总是报错,请问如何才能做到正确设置纸张大小,望高手解答。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货