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?
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.
This has been annoying me for years this works
Hit Windows key + R to bring up the Run dialog and enter the following:
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --disable-print-preview
This removes the print preview which is great but on when shutting down the computer and restarting you will have to run it again.
As a fix for this set up a scheduled task see link below
http://www.howtogeek.com/138159/how-to-enable-programs-and-custom-scripts-to-run-at-boot/
Hope this helps