How to disable print preview on Google Chrome ver 38?

John Arzaga picture John Arzaga · Jul 27, 2015 · Viewed 16.6k times · Source

I have develop POS using web browser. But when I use onload="window.print();" a print preview appears and you need to press the ok to proceed printing.

There are recommendations from other sources to add --disable-print-preview on the short-cut. These appears to be working on old versions.

What version this extension works? or any other way to disable from the latest version of chrome?

Answer

Maximillian Laumeister picture Maximillian Laumeister · Jul 27, 2015

The command-line argument --disable-print-preview works on the newest version of Chrome, I've just tested it myself.

I'm using Chrome 44.0.2403.107 (64-bit).

If you want not only to skip the print preview but the system print dialog too, use the --kiosk-printing command line option instead.

Make sure Chrome gets shut down completely before you relaunch it, as it likes to hang out as a background process. You might need to restart your computer to get it to work.