Search code examples
phpjavascriptjqueryprintingprintdialog

JavasScript/jQuery application to print 100 invoices with one click without opening print dialog


I am trying to create an application (jQuery or JavaScript) that will print 100 unique invoices with 1 click of a print button without calling the print dialog box.

Requirement is that I don't want to allow website users to access soft copies of their invoices. Problem is that the JavaScript print command window.print opens a dialog box for each invoice and in my case it will ask 100 times to print next invoice.

Any help will be highly appreciated, thanks in advance!


Solution

  • You can't bypass the print dialog box, but you can generate all your invoices before triggering print dialog