Please wait while we look for things ...
Coding with ScriptX.Services
for Windows PC
This page shows using your own ScriptX.Services for Windows PC to print pages from your own web apps.
ScriptX.Services for Windows PC is a local only web server that listens on a local loopback address (127.0.0.1)
or localhost:
and custom port (default 41191
). Your web app will not be hosted on the same domain or server as ScriptX.Services for Windows PC.
This means that even if you know the local loopback address port for ScriptX.Services for Windows PC, calls to the server will be blocked unless a valid ScriptX client license is used.
Client PC Installation
With ScriptX.Services for Windows PC, the service must first be installed to each device (Microsoft Windows Intel x64 PC only). Unlike with ScriptX.Add-on for Internet Explorer this has to be a separate process; it cannot be automated using a .cab based installer that is referenced by and delivered with the page.
Javascript can be used to detect if a service is available and if not the user then redirected to a suitable page that assists with installation of the required applications/services.
A valid MeadCo ScriptX Client license must be referenced on any page that wishes to use the local ScriptX.Services for Windows PC. The license is referenced using script.
To deliver a print experience to your users any page in your app that provides printing of the page must:
- Reference the ScriptX.Services javascript library and dependencies (or write your own code to use the Web API),
- Add code to configure the library - including the MeadCo ScriptX Client license to use,
- Add code to describe required settings such as margins, headers and footers,
- Add a print button or other appropriate UI to your page,
- Connect the print button click even, or appropriate UI event to the ScriptX.Services code using your favourite technique,
- Done!
A worked example - this page
With ScriptX.Services for Windows PC the printer may be a physical printer connected to the PC. When this page starts, it connects to your installed ScriptX.Services for Windows PC and will use the PC default printer.
Unable to connect to ScriptX.Services for Windows PC on your PC
Have you installed ScriptX.Services for Windows PC?
Details on how to install are here.
As the name says, this only works on a Windows PC
It would appear you are not using a PC running Microsoft Windows (we think you are using Unknown). Please take a look at ScriptX.Services for On-Premise Devices .