通过Web应用程序安装网络打印机(html) [英] Install network printer via web application (html)

查看:590
本文介绍了通过Web应用程序安装网络打印机(html)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写一个简单的Web界面,以允许用户安装几个预定义的网络打印机之一。我初步认为这将是一项简单的任务,因为我可以通过运行命令轻松安装打印机(\printserv\printername),从而轻松安装打印机。我原计划在标签中使用它,或者在它前面添加一个file://,但这两种方法都会导致以下错误:



\printserv\\ \\ PRINTERAME无法访问,您可能没有权限使用此网络资源,请联系此服务器的管理员以确定您是否拥有访问权限。



我知道我有权使用此资源,因为我可以通过运行命令安装它。任何想法,我可能做错了什么,或者一个替代解决方案?

解决方案

打开本地位置 - 无论是在文件系统还是在网络 - 由于安全原因变得非常困难。我还没有找到一种方法在Firefox 中为我自己作为开发人员(可以完全访问浏览器),因此可以在调试中浏览我的Web应用程序时添加直接链接到我的Web开发IDE模式。

我会推荐检测用户的操作系统(XP / 2000 / Vista / 7 / Whatever),显示问题中的网络地址大而胖:


<\\> \printserv\printername




,然后显示定制的分步安装说明:


  1. 点击开始按钮。

  2. 点击运行...。

  3. 复制上面的地址并粘贴到字段中。 b
  4. 点击确定

等。


I'm trying to write a simple web interface to allow users to install one of a few predefined network printers. I had initally thought this would be a simple task, as I can easily install printers via the run command by hitting the printer dead on (\printserv\printername). I had planned to either use that in the tag, or prefix it with a "file://" but both methods result in the following error

"\printserv\printername is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions."

I know I have permission to use this resource as I can install it via the run command. Any idea what I may be doing wrong, or an alternative solution?

解决方案

Opening local locations - whether on the filesystem or in the network - has become awfully difficult due to security reasons. I have yet to find a method that does this in Firefox for myself as a developer (with full access to the browser) so I can add direct links to my Web development IDE while browsing my web apps in debug mode.

I would recommend to detect the user's operating system (XP/2000/Vista/7/Whatever), display the network address in question big and fat in the center of the screen:

\printserv\printername

and then display customized step-by-step installation instructions:

  1. Click the "Start" button.
  2. Click "Run...."
  3. Copy and paste the address above into the field.
  4. Click "OK"

etc.

这篇关于通过Web应用程序安装网络打印机(html)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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