This sample uses the ScriptX.Add-on, jQuery and the MeadCoJS library to provide page printing and PDF document printing.
The MeadCoScriptXJS library is used as it provides benefits when transitioning to using both ScriptX.Addon and ScriptX.Services with the same javascript code. It isnt required, it just makes life a little easier. If you are not currently using the library, adding it to your code is simple.
The samples also use Bootstrap 3. This is retained for this sample; it has no impact on actual print code.
Licensing is now added to the page and this "lights-up" the full ScriptX.Services functionality.
The license enabling code used will depend upon the ScriptX.Service you have chosen to use:
Cloud/OnPremise
orFor Windows PC
.
Other than print preview, this page will now provide the same functionality in all browsers with exactly the same HTML+css+javascript delivered to each browser.
The code needs MeadCoScriptXJS 1.5.6 or later to work correctly.