在网上看到如下的代码:
ASP开发必备:WEB打印代码大全这篇文章主要介绍了如何使用ASP控制Web的各种打印效果,它能够控制纵打、横打和页面边距等。
1、控制"纵打"、 "横打"和"页面的边距"。
程序代码:
<script defer>
>>>>function SetPrintSettings() {
>>>>// -- advanced features
>>>>factory.printing.SetMarginMeasure(2) // measure margins in inches
>>>>factory.SetPageRange(false, 1, 3) // need pages from 1 to 3
>>>>factory.printing.printer = "HP DeskJet 870C"
>>>>factory.printing.copies = 2
>>>>factory.printing.collate = true
>>>>factory.printing.paperSize = "A4"
>>>>factory.printing.paperSource = "Manual feed"
>>>>// -- basic features
>>>>factory.printing.header = "This is MeadCo"
>>>>factory.printing.footer = "Advanced Printing by ScriptX"
>>>>factory.printing.portrait = false
>>>>factory.printing.leftMargin = 1.0
>>>>factory.printing.topMargin = 1.0
>>>>factory.printing.rightMargin = 1.0
>>>>factory.printing.bottomMargin = 1.0
>>>>}
</script>
其中factory好象是个控件,但再没有找到它的解释
谁能帮我解决这个问题,谢谢!急!!!