MeadCo's MaxiPT provides printing capabilities that are significantly more flexible and powerful than Internet Explorer's standard offering. Check these samples and their sources to see how to script the template:
Licensing MaxiPT
From version 6,1,431,2 of ScriptX and later, the licensing of the two Feature Sets of MaxiPT is controlled on the publishing license issued to you by MeadCo:
<PERMISSION PRINTING="true" MAXIPTCORE="true" MAXIPTEXTENDED="true"> </PERMISSION>
Deployment
The print template's resources are now installed client-side in a DLL and - from version 7,0,0,8 of ScriptX and later - called from there by a parameter on the ScriptX object:
<!-- MeadCo Security Manager -->
<object id="secmgr" style="display:none"
classid="clsid:5445be81-b796-11d2-b931-002018654e2e"
codebase="[your path here]/smsx.cab#Version=7,0,0,8">
<param name="GUID" value="{EED6C59A-AC2B-4578-96D0-C0C1AE483FEE}">
<param name="Path" value="[your path here]/sxlic.mlf">
<param name="Revision" value="0">
</object>
<!-- MeadCo ScriptX -->
<object id="factory" style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814">
<param name="template" value="MeadCo://maxipt"/>
</object>
MaxiPT functionality
MaxiPT incorporates these additional properties:
document.printingRules.allPagesHeader = "<div align=center> <h1> MeadCo's MaxiPT </h1> <br>"+ "Header for &p page <br> time: &T </div>";
document.printingRules.firstPageFooter = "<div align=right> <h3> MeadCo's MaxiPT </h3> <br>"+ "Footer for page &p of &P </div>";
document.printingRules.extraFirstPageFooter = "<font color="#0000FF"> Total pages: <b>&P</b> - "+ "<i>Technical Data Sheets</i><font>";
document.printingRules.allHeaderHeight = 120; // points document.printingRules.extraFirstFooterHeight = 60;
document.printingRules.pageRange = "1,3-5,7,9-11";
document.printingRules.printingPass= "even";
document.printingRules.mirrorMargins = true;
document.printingRules.optimalPageLayout = true;
document.printingRules.limitContentLastPage = 2.5; // inches
document.printingRules.optimalPageLayoutDirection = "Equally"; // "Top", "Botton", "Equally"
document.printingRules.useActiveFrame = true;
document.printingRules.pageWidth = 1280; // points document.printingRules.pageHeight = 1024;
document.printingRules.pageZoom = "50%";