- Docs
- KitStak WMS
- Integrations
Direct Print agent and printer setup
Assign barcode and laser printers per warehouse, install the KitStak Direct Print agent on a workstation and send ZPL and PDF labels straight to printers.
KitStak can send labels and documents straight to a printer, with no browser print dialog. Each user picks a barcode printer and a laser printer per warehouse, and a small program on the workstation, the Direct Print agent, passes each print job to the printer. Without the agent, printouts still work: they open in the browser print dialog with the right paper size.
Before you start
- The workstation needs Node.js 18 or later to run the agent.
- Know your printers: a network Zebra printer by its IP address, or any printer by its name in the operating system.
Assign your printers
- Select the Printers icon in the header.
- Choose the Warehouse you work in and select Next.
- Pick the Selected barcode printer, the thermal printer for labels.
- Pick the Selected laser printer, for documents such as packing lists.
- Select Test label to print a ZPL test label on the barcode printer.
- Select Save.
You can type a printer name that isn't listed yet. A network Zebra printer can be entered as 192.168.1.50:9100. Your assignment saves even when the agent isn't running.
Scan to assign
Instead of picking from the list, scan a printer's label into Scan a printer label to assign it. A label starting with BC: or LBL: goes to the barcode printer, and one starting with LS: or LZ: goes to the laser printer. Thermal printer names such as Zebra or Honeywell models go to the barcode printer.
Install the Direct Print agent
- Open the Printers popover. When the agent isn't running you see Direct Print agent not connected.
- Select Download agent. The browser saves
kitstak-print-agent.mjs. - On the workstation, open a terminal in the download folder and run
node kitstak-print-agent.mjs. - Keep that window open, or install it as a service, while you print from KitStak.
- In the popover, select Check for agent. It now reads Direct Print agent connected with its version.
Setup guide in the popover opens the in-app help on Direct Print.
How the agent works
| Topic | Detail |
|---|---|
| Address | Listens on 127.0.0.1:9101 only, so nothing outside the workstation can reach it. |
| Who may print | Accepts requests only from the KitStak site it was downloaded from. Add more with --origin. |
| Port | Change it with --port. |
| ZPL to a network printer | Sent over a raw socket to the IP address, port 9100 by default. |
| ZPL or PDF to a named printer | Sent through the operating system spooler: lp on macOS and Linux, PowerShell on Windows. |
| Printer list | Read from the operating system, so installed printers show in the popover. |
Troubleshooting
| Symptom | What to check |
|---|---|
| Direct Print agent not connected | The agent window is open and Check for agent was selected on the same workstation. |
| Test label failed: the Direct Print agent stopped answering. | The agent window was closed. Start it again. |
| The printer did not answer | The IP address and port, and that the printer is on the network. |
| Printouts open in the browser | The agent isn't running. Printing still works through the print dialog. |
Related
Something missing or unclear? Tell us and we will fix the page. To see it in your own data, book a walkthrough.