Lab & physical-exam report silent print

LIS / checkup systems need lab reports and physical-exam summaries without browser dialogs. Use web-print-pdf on the window PC. Start from lab-report and physical-exam demos.

Print architecture

LIS web → HTML → printHtml → window client → named laser.

Typical scenarios

Windows

Per-window printers

Bind printerName per desk to avoid cross-printing.

Integration steps

  1. Install client on the window PC
  2. npm install web-print-pdf
  3. Adapt lab-report CSS
  4. printHtml with named printer

Lab report printHtml sample

await webPrintPdf.printHtml(
  labReportHtml,
  { paperFormat: 'A4', printBackground: true, margin: { top: '10mm', bottom: '10mm', left: '8mm', right: '8mm' } },
  { printerName: 'Lab window laser', copies: 1 }
);

Parameter tips

  • A4 + printBackground
  • Measured margins
  • Window-level printerName

Selection notes

PDF download ≠ silent paper output. Use the local client for window printing; keep Lodop for precision seals if needed.

Troubleshooting

  • Cropped footers → margins
  • Wrong printer → printerName

Related guides on this site

FAQ

Duplex?

Via printOptions when the driver supports it.

Share client with Rx printing?

Yes—one client per PC.

Specimen labels?

Use label demos / medical guide; reports stay A4.

Cloud LIS?

Printing still uses the local desk client.

Privacy?

Local PDF render—no cloud print hop.

Client deployment by platform

The same web-print-pdf front-end runs on Windows, macOS, and Linux/domestic OS—install the matching client on each desktop.

Download client — free trial View npm package Documentation