This page illustrates some advanced uses of ScriptX to print HTML.
Setting the required print attributes is easy:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
function SetupPrint() { // set the print parameters we require const p = MeadCo.ScriptX.Printing; p.header = "MeadCo's ScriptX Advanced printing example" ; p.footer = "The de facto standard for advanced web-based printing" ; if ( MeadCo.Licensing.IsLicensed() ) { p.SetMarginMeasure(2); // margins in inches p.leftMargin = 0.75; p.topMargin = 1.5; p.rightMargin = 0.75; p.bottomMargin = 1.5; p.printBackground = true ; // disable IE native printing UI p.disableUI = true ; } else { // disable options when no license ... } } |
Use the menu at the top of this page to try a print action.