从asp.net网站asp.net访问网络打印机 [英] Accessing network printer from asp.net website asp.net
本文介绍了从asp.net网站asp.net访问网络打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正试图通过点击我网站上的按钮来安装/映射网络打印机
Hi all,
I am trying to install/map a network printer by clicking a button from my website
<a class="btn btn-default" href=file://printservername\printerhostname>Connect »</a>
当我点击它访问打印服务器的按钮时,这是我的按钮背后的代码,但它不会尝试连接到打印机。
我们非常感谢任何帮助
This is the code behind my button when i click the button it access's the print server but it doesn't try to connect to the printer.
Any help would be greatly appreciated
推荐答案
我所知道的唯一选择是导航到网络中打印机的地址,例如:
The only option I know of is to navigate to the address of the printer in the network, like:
window.location = 'http://machine_ip/printer_name/'
(必须是 http://
而不是 file://
!)
这篇关于从asp.net网站asp.net访问网络打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文