弹出打印窗口的一个方法
<OBJECT id=factory style="DISPLAY: none" codeBase=http://www.meadroid.com/scriptx/ScriptX.cab#Version=5,60,0,360
classid=clsid:1663ed61-23eb-11d2-b92f-008048fdd814 viewastext></OBJECT>
<script defer>
function window.onload() {
factory.printing.header = "-"
factory.printing.footer = "-"
factory.printing.Print(true)
factory.printing.leftMargin = 0.2
factory.printing.topMargin = 0.5
factory.printing.rightMargin = 0.2
factory.printing.bottomMargin = 1.5
}
本文网址:https://www.dedexuexi.com/wysj/html/2880.html
本站部分文章搜集与网络,如有侵权请联系本站,转载请说明出处。