I do this with my store ordering system written in PHP and use the print dialog through jquery. you can bypass the firefox print dialog using the about: config page.
- Open firefox and put about: config in the address bar and press enter (you need to press a button that shows that you know what you are doing)
- Enter print.always_print_silent in the filter field at the top. If you have an entry already there and it is set to false, just right-click it and select "toggle" to set it to true. If there is no entry, then ...
- right click on the screen and select New-> boolean
- type print.always_print_silent as the preference name when prompted and press enter
- set boolean true and press enter
To do this, you will no longer see a dialog box when printing. Beware, however, it will try to print the last printer you used when you opened the dialog box. If you ever need to change it, you will need to switch the value for print.always_print_silent by following these steps.
source share