简体   繁体   中英

javascript .print() - turn off default printer

Out system uses the javascript .print(), which brings up the print dialog with the default printer selected. Is there a way to turn off the default printer so that when the dialog appears there is no printer selected so that the user has to select one.

I was hoping to use a global setting (eg web.config) so I could switch the default printer on or off.

Any ideas?

There is a simple answer. No.

You cannot and will never be able to access (let alone modify) system settings through JavaScript.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM