Chapter 7Printers
This chapter is for the support technician and the laboratory's computer administrator. It explains:
- How the program prints the label, the receipt and the report, and from which computer.
- How each printer is bound to its role, set up and tested.
- What to do when a printer does not print.
7.1 How the program prints
The program has three printing roles, and each role has its printer:
| Role | What it prints | Default paper | Usual command language |
|---|---|---|---|
| Label printer | The tube's label | A 50 × 25 mm label. Its size is chosen between 20 and 110 mm wide and between 10 and 80 mm high | ZPL or TSPL |
| Receipt printer | The patient's receipt | An 80 mm thermal roll. Also 58 mm, A4 and A5 | ESC/POS |
| Report printer | The results report | A4 | The Windows driver |
Printing goes one of two ways, chosen in How the program prints:
- Silent printing through the stations, the default. Each station sends the job to the printer chosen for its role, with no window at all.
- The browser's print dialog. The browser's print window opens for every label, receipt and report, and the user picks the printer.
The station is part of the program itself, so it is never installed on its own. The server has a station, and so does every member computer. Each station reads its own computer's printers and prints on them:
- The server's station pairs itself with the laboratory the first time the program starts.
- A member computer's station is given to it when it joins the server, and taken away when it is removed.
So a user on a member computer prints on the printers at their own desk, not on the server's. A computer that only opens the program in a browser, with nothing installed, has no station. It always prints from the browser's print window.
7.2 Binding printers to their roles
The page opens from the Settings menu, then Devices and printers, then the Stations and printers tab. Changing it needs the Manage devices permission.
- Choose the station from the list. Under The chosen station appear its state, its printers, the analysers cabled to it, and its latest jobs.
- Under Printers, choose a printer for each role from those the station detects on its computer.
- Choose the Command language for each printer:
- Automatic: the program knows the printer's language from its name. It is the right choice in most cases.
- ZPL, TSPL or ESC/POS: the program sends the printer's commands in its own language.
- Windows driver: the program draws the page as a picture and prints it through the printer's Windows driver.
- Press Save the printers.
- Press Test page. A test page comes out of every bound printer.
When a printer first appears, the program chooses its role and language by itself, from its name:
- Zebra is a label printer speaking ZPL.
- TSC and its like are label printers speaking TSPL.
- 58 and 80 mm roll printers are receipt printers speaking ESC/POS.
- Label printers whose language the program does not write, such as Brother QL and DYMO LabelWriter, print through the Windows driver.
- A printer the program does not recognise is taken for a report printer. An A4 page out of an unknown device is a smaller mistake than sending patients' labels to a printer that cannot read them.
It then binds each role to a printer by these rules:
- The label role takes only a label printer. If there is none, the role stays empty and the label prints from the browser's window. That is safer than sending patients' labels to the office printer and telling the user they printed.
- The report role takes any printer that is not a label printer, preferring the Windows default printer.
- The receipt and report roles stand in for each other when one has no printer.
What the program chose is shown beside each role under What the station detects, and what the technician saves comes before it.
7.3 Printing settings
The same page has the Printing settings button. It holds:
| Section | Setting | What it does |
|---|---|---|
| The way | How the program prints | Silent printing or the browser's window, as above |
| The label | Label printer resolution | 203 dots per inch by default. It must match the printer's real resolution, or the label comes out at the wrong size |
| The label | Print direction | As the printer is set, Normal or Upside down |
| The label | Horizontal offset (mm) and Vertical offset (mm) | Correct where the print lands on the label |
| The report | Report horizontal offset (mm), Report vertical offset (mm) and Report size (%) | Correct a printer that shifts or shrinks the page |
| The receipt | Receipt horizontal offset (mm), Receipt vertical offset (mm) and Receipt size (%) | The same for the receipt |
An offset runs from −30 to 30 mm, and a positive one moves right and down. A size runs from 50 to 150%. An empty box keeps the printer as it is set. These values apply on paper only, silent or through the browser's window, and never change the PDF a patient receives.
To calibrate the label printer:
- Press Calibration label and choose the station. A label comes out showing the real edges of the print.
- If the label is shifted from its edges, type the offset needed in millimetres.
- Save, and print the calibration label again until it sits straight.
The label's size and what is printed on it, the receipt's paper and its parts, and the report's layout, header, footer and signatures are all designed in Print studio. They are explained in Appendix D: Settings reference.
7.4 Stations and their states
Each station has a card in the Stations and printers tab. Its state is one of Online, Offline, Updating or Revoked, with the time it was last seen beneath.
Latest jobs shows the state of every job sent to it:
| State | Meaning |
|---|---|
| Waiting | Waiting for the station to take it |
| At the station | The station took it and has not reported the outcome yet |
| Done | Printed |
| Failed | Not printed. The reason is written beside it |
| Timed out | The station did not take it in time |
A station updates itself with the program on its computer, so it needs no update of its own.
Taking a station back. The Take the station back button stops the station. It neither prints nor receives from the analysers cabled to it until it is paired again. The server's station, once taken back, stays that way and does not return by itself. If it was taken back by mistake:
- Stop the program on the server (see 4.4 Stopping and restarting).
- Rename the file
gateway-station.jsonin the data folder. Do not delete it. - Start the program. The station pairs again, with a new card.
- Bind its printers to their roles again, and tick the analysers cabled to it.
Pairing a new station. The Pair a new station button makes a pairing code for the separate station program, on a computer that is neither the server nor a member. The code is valid for a limited time and is shown once only. The server and the member computers never need it.
7.5 When the printer does not print
| What shows | Likely cause | What to do |
|---|---|---|
| Printing through the browser: the station's direct printing is not available now. The print station is not running or has not reported in: check that the program is running on that computer. | The program is not running on the station's computer | Sign in to Windows on that computer and wait a minute (see 4.3 How the program starts) |
| No print station has been paired yet. | The server's station has not paired yet | Restart the program on the server. If the station was taken back, follow the steps above to bring it back |
| Direct printing is not set to the station in the print settings. | The way is set to the browser's window | Choose Silent printing through the stations in Printing settings |
| No printer is chosen for this document: choose one on the «Devices and printers» screen. | No printer for this role on the station | Bind a printer to the role, then print a test page |
| This station cannot print reports silently: update the program on it. | The program on that computer is older than the server's | Update the program on that computer (see Chapter 9: Updates and rollback) |
| The printer did not print: it is switched off, unplugged or stuck. | The printer is off, unplugged or stuck | Switch it on and check its cable. It is still in the Windows queue and may print when the printer comes back. |
| The printer is out of paper. | Paper or labels ran out | Load new paper |
| This printer's driver takes text only and cannot draw pictures. Choose the printer's own language for it (for example ESC/POS) or another printer. | The printer's driver is text only, and its language is set to Windows driver | Choose its right language, such as ESC/POS |
| The label comes out blank, or prints strange text instead of a barcode | The command language does not match the printer | Choose the language the printer speaks, or Windows driver |
| The label prints larger or smaller than its edges | The resolution set is not the printer's | Correct Label printer resolution, for example 300 instead of 203 |
| The print is shifted from the edge | The printer's calibration | Use the Calibration label and the offsets |
| The browser blocked the print window. Open the page to print it. | The browser blocked pop-ups | Press Open the page, or allow the program's pop-ups in the browser |
| A message that only part was sent to the printer | Sending stopped half-way | Reprint the rest, as the message says |