We have an issue where Chrome's "Print Preview" does not print our pages correctly. If you use the "Use System Print Dialog link" (Ctrl+Shift+P), it prints our page fine (almost identically to Firefox).
We have a button on our page that calls window.print() to open the print dialog. However, in Chrome it opens to the "Print Preview" dialog which ends up not printing our page correctly.
Is there away with JavaScript to print directly to the "system print dialog" in Chrome?
P.S. I do know how the end user can disable the Print Preview in chrome://flags, but what I want to know is there anyway to prevent it from showing when I programmatically call window.print() (or similar) regardless of user settings.
Chrome System Print Dialog If you've already pressed the Ctrl+P keyboard shortcut, then look for the 'Print using system dialog' option at the very bottom of the left column. What is this? To jump directly to the system print dialog, you can use the Ctrl+Shift+P keyboard shortcut.
The CTRL + SHIFT + P key combination brings up the system print dialog box, from which you can configure your default print settings and print out the page you are viewing.
Print dialogs are not scriptable using JavaScript. They're proprietary parts of browsers themselves.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With