← Nortiqo Labels

Install guide · version 1.1

12. Print straight to a network printer, where the server reaches it

Contents

From version 1.1, X3 sends ZPL labels straight to a printer’s port, with no file and no queue script (the help’s Label destinations). X3 connects from its own server, so the route to the printers is the customer’s network, not Labels: on premises the same network, for a hosted X3 a VPN or a tunnel that the customer and the host set up. It needs an X3 server on Windows with PowerShell 5.1, and does not work in Sage X3 Cloud.

  1. Whoever administers the network gives each printer a fixed address, or a name the X3 server resolves, and opens the way from the X3 server to the printers’ port alone, 9100 on a Zebra and most other label printers. Nothing needs to reach the X3 server from the printers.
  2. Whoever administers the X3 server checks two things where the customer has tightened the server. Where the runtime’s configRuntime.json lists the commands X3 may run in its sandbox section, cmd and powershell are admitted, and the folder’s TMP directory takes files ending in .ps1 and .zpl. Where a policy stops unsigned PowerShell scripts for the user the runtime runs as, that user has an exception. Point 3’s save tells whether either is needed.
  3. In Label destinations (GESXNQLD), create a destination for each printer: Type Network printer, the Printer address as the X3 server reaches it, the Port number, 9100 proposed, and the Time limit, 5 seconds proposed. Where X3 may not run its send on this server, the save says so at once: X3 could not run the send to a network printer on its server, with what the server answered. That is point 2.
  4. Click Test. A small test label goes to the printer, and X3 says the printer took it and in how many milliseconds. The label names the destination and the server’s time.

Check: the test label comes out of each printer. Then print one label to it as in step 7, choosing the destination on Label printing: the job’s lines read Taken by printer ….

When the test fails, its message says where to look:

  • Printer … refused the connection on port …: the address answers, and nothing listens on that port. Check the port against the printer’s own network settings.
  • Printer … gave no answer on port … within … s: a wrong address, a printer that is off, or a firewall that drops the traffic: point 1.
  • Printer … could not be reached on port …, with the reason Windows gives: most often a name the server does not resolve.
  • X3 could not run the send to a network printer on its server: point 2.

A time limit raised above 5 seconds helps only on a slow line, such as a VPN over mobile data.

A printer that takes the labels while paused or out of labels prints them when it is put right: Taken is what the printer accepted, and Labels does not read the printer’s state.

Stuck? Ask your Sage partner, or write to info@nortiqo.com.

Email us

info@nortiqo.com