javascript .print()-关闭默认打印机 [英] javascript .print() - turn off default printer

查看:200
本文介绍了javascript .print()-关闭默认打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Out系统使用javascript .print(),它会在选择默认打印机的情况下显示打印"对话框.有没有办法关闭默认打印机,以便在对话框出现时没有选择打印机,因此用户必须选择一个.

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.

我希望使用全局设置(例如web.config),以便可以打开或关闭默认打印机.

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

有什么想法吗?

推荐答案

有一个简单的答案.不.

There is a simple answer. No.

您永远也无法通过JavaScript访问(更不用说修改)系统设置了.

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

这篇关于javascript .print()-关闭默认打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆