How to disable print preview on Google Chrome ver 38?

我是研究僧i 提交于 2020-01-01 17:10:38

问题


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?


回答1:


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.




回答2:


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




回答3:


  1. Task manager -> Chrome -> end process
  2. Chrome Properties Target: ( "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --kiosk-printing) apply and ok
  3. Start Chrome ,Finish



来源:https://stackoverflow.com/questions/31643913/how-to-disable-print-preview-on-google-chrome-ver-38

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!