Installation and basic use
Introduction to using ScriptX.Services
A stage by stage walkthrough
A walk through developing a single source that supports both ScriptX.Add-on and ScriptX.Services. The code used in the sample can be used in your own projects. This sample set is a reference for when things go wrong.
These samples can be viewed in IE 11 - in which case the Add-on will be used. Or any evergreen browser, in which case ScriptX.Services will be used.
Note that if even if you have chosen to use ScriptX.Services with Internet Explorer 11 in settings, Internet Explorer will only use ScriptX.Addon in this samples set.
Advanced print features
The use of Advanced features of ScriptX.Add-on require a client side license. All advanced features are included in all licenses for ScriptX.Services.
Print "remote" documents
Very often ScriptX is used to print the content of the document as it is displayed on the screen but there can also be a need to print a document downloaded from a server. The document might be static or generated in response to the request for the document.
The PrintHTML() method downloads and prints remote documents in the background.
Working with client generated html
By using the html:// pseudo protocol, the PrintHTMLEx() method can print snippets of HTML.
These samples also illustrate mixing ScriptX.Add-on and ScriptX Services on the same page. So, the choice of technology will solely be based upon the browser you are using and if ScriptX.Add-on is available. The F12 tools can be used to examine the impact of document modes when using Internet Explorer.
Enhanced page layout
Enhanced page layout is the ability to use page headers and footers that use full html markup instead of simply text in a single font and to define the pages to print as more than a single range.
This capability is useful to provide a 'master' page style of working with logos etc. specified in script and the printed document content coming from the current page.
Printing PDF documents
ScriptX Enhanced PDF Printing provides for printing Adobe Acrobat (PDF) documents with control of the printer, paper etc to be used. Prompted or promptless printing is provided.
An Enhanced PDF Printing license is required in addition to a license for Advanced Printing.
Raw/Direct (labels) printing
Raw or "direct" printing is used to send streams of bytes to the printer without any interpretation. Print commannds and language sequences such as ZPL can be sent to appropriate printers for printing labels etc.
A ZPL compatible printer is required for these samples.
They also require that you are using either ScriptX.Addon or ScriptX.Services for Windows PC or ScriptX.Services for On Premise devices configured to use a suitable printer.
Working with and printing SVG
Some original samples
These samples are originals from the early days of developing ScriptX.Services and remain here as tests that nothing has been inadvertently broken as more is added to the service.
Print the viewed page
Prints the document currently displayed in the browser with a header and footer and page orientation as defined by the page script.
Print a frame from the viewed page
Prints the content of a frame in the current document with a header and footer as defined by the page script.
Print the HTML from a url
Prints the HTML content downloaded from a url with a header and footer as defined by the page script.
Print PDF Documents
Simple illustrations of printing PDF documents. As this is the Cloud service this is printing PDF documents to PDF so we outpuut to XPS instead simply as a demonstration that the facility works.
Something rather random.