请教关于打印的问题

我想自定义打印纸张的尺寸,可在IE浏览器中的页面设置功能中没有自定义打印纸张尺寸的功能,用javascript怎么才能实现呢?

---------------------------------------------------------------

 1<script defer="">   
 2function SetPrintSettings() {   
 3// -- advanced features   
 4factory.printing.SetMarginMeasure(2) // measure margins in inches   
 5factory.SetPageRange(false, 1, 3) // need pages from 1 to 3   
 6factory.printing.printer = "HP DeskJet 870C"   
 7factory.printing.copies = 2   
 8factory.printing.collate = true   
 9factory.printing.paperSize = "A4"   
10factory.printing.paperSource = "Manual feed"   
11  
12// -- basic features   
13factory.printing.header = "This is MeadCo"   
14factory.printing.footer = "Advanced Printing by ScriptX"   
15factory.printing.portrait = false   
16factory.printing.leftMargin = 1.0   
17factory.printing.topMargin = 1.0   
18factory.printing.rightMargin = 1.0   
19factory.printing.bottomMargin = 1.0   
20}   
21  
22function Print(frame) {   
23factory.printing.Print(true, frame) // print with prompt   
24}   
25</script>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus