简体   繁体   中英

Selecting specific printer by javascript

I have two printer connected to my computer. Can I select a specific printer by javascript code.

Print options cannot be bypassed. Default printer is determined on the visitors OS. There is nothing you can do about it with plain old JavaScript. It might be possible with Flash or Java, but it would potentially cause loss of trust from your visitors.

You can't, the browser won't allow it. This is in place to safeguard the printer from malicious printing by websites.

If you have a closed environment (like an intranet) you could print on the server side to a printer connected to a server. The exact details would depend on your server setup and you'd best discuss that with your local system administrator.

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