The previous samples in this series, while using the free sub-set of functionality of ScriptX have used contrived methods to download the report and print; driven by script, the report is downloaded to a frame or window and then printed. Whilst viable this approach does suffer from difficulties when print parameters such as headers and footers vary from report to report and is a little ugly.
The ScriptX licensed method printHtml implements its own queue and caches printing parameters (including printer to use and so on) - documents are downloaded and once the download is complete, the document is printed. In its default usage, users must wait for the entire queue to download and print before navigating away from this page. However, the OwnQueue() method moves the printHtml queue to its own independent process and users are free to get on with their work.
NOTE: In the first call to printHtml the queue is initialised and fixed to the current state for the rest of the lifetime of the window; if it is required OwnQueue must be called before the first call to printHtml.