ERP / finance invoice & statement silent print

Finance teams need invoices and statements on named office printers without browser dialogs. HTML reports + printHtml reuse web layouts.

Print architecture

ERP HTML → printHtml → local client → silent A4/laser output.

Typical scenarios

Invoice

Tax invoice layout

A4 + backgrounds—see invoice demo.

Integration steps

  1. Install client on finance PC
  2. Extract report HTML from ERP UI
  3. Set A4 pdfOptions + printerName
  4. Preview then silent print
  5. Use formatPrintError for failures

A4 invoice printHtml example

await webPrintPdf.printHtml(
  invoiceHtml,
  { paperFormat: 'A4', printBackground: true },
  { printerName: '财务室激光', duplex: 'longEdge' }
);

Parameter tips

  • printBackground: true for CSS backgrounds
  • duplex when printer supports it
  • Authenticated URLs: auth URL print

Selection notes

Manual dialog → window.print; silent named printer → web-print-pdf. Legacy Lodop: migration guide.

Troubleshooting

  • Missing backgrounds → printBackground
  • Clipped tables → margins & page-break CSS
  • Login page in PDF → auth-url-print guide

Related guides on this site

FAQ

Where does ERP HTML come from?

DOM ref, API HTML string, or printHtmlByUrl with extraOptions.

Named finance printer?

Yes—printOptions.printerName from client list.

Multi-page tables?

CSS page-break + A4 pdfOptions; preview first.

Batch statements?

batchPrint with per-task overrides.

vs PDF export?

jsPDF/Puppeteer for archives; desk print uses web-print-pdf.

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