下载ScriptX.cab控件,修改codebase的值,默认下面的设置也可以。
页面加载控件:
<object id="factory" style="display:none" viewastext classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase=" http://www.meadroid.com/scriptx/ScriptX.cab#Version =5,60,0,360"></object >
控件使用教本:
<guión aplazado>
función SetPrintSettings() {
// -- funciones avanzadas ,未曾使用过,有待确认。
factory.printing.SetMarginMeasure(2) // medir márgenes en pulgadas
factory.SetPageRange(false, 1, 3) // necesita páginas del 1 al 3
factory.printing.printer = "HP DeskJet 870C"
fábrica.impresión.copias = 2
factory.printing.collate = verdadero
factory.printing.paperSize = "A4"
factory.printing.paperSource = "Alimentación manual"
// -- características básicas 使用过
factory.printing.header = "Este es MeadCo"
factory.printing.footer = "Impresión avanzada mediante ScriptX"
factory.printing.portrait = false //方向,true
factory.printing.leftMargin = 1.0
fábrica.impresión.topMargin = 1,0
factory.printing.rightMargin = 1,0
factory.printing.bottomMargin = 1.0
factory.printing.Print(false) //直接打印,true ,好像不起作用,总是弹出选择打印机窗口
factory.printing.PageSetup() //打印设置
factory.printing.Preview() //打印预览
}
</script>