This page illustrates some advanced uses of ScriptX to print HTML.
Setting the required print attributes is easy:
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.