使用 mozilla 打印到不同的打印机
我目前正在创建一个将部署在 Intranet 环境中的 Web 应用程序。我选择 Firefox 作为运行它的浏览器。
但是,在我正在构建的应用程序中,我需要能够快速打印到不同的打印机,因为它们根据即将到来的客户使用不同的纸张尺寸。避免可能发生的许多浪费时间的错误,例如有人选择了错误的打印机并浪费纸张。此外,在当前情况下,为作业找到合适的打印机然后按下打印所花费的时间被认为太长。
这个问题有什么解决办法吗?我了解这背后潜在的安全缺陷,但请注意,这只是一个内部网项目,我可以将浏览器的安全性降低到最低,因为它们不访问互联网。
我知道 IE(ActiveX 或 VBScript)背后可能有一些可行的方法,但我使用的是 Firefox。另外,我想也可能有一些相当棘手的事情,当您在浏览器上按打印时,它会将需要打印的内容保存到数据库中,然后有一个 exe 应用程序运行并每隔设定的时间获取该数据库并打印到正确的打印机。
任何建议将不胜感激。我怀疑我是唯一一个遇到过这个问题的人! :)
非常感谢。
I am currently creating a web application that will be deployed in an intranet environment. I chose firefox to be the browser that will run it.
However, in the application I am building, I need to be able to print to different printers quickly since they use different paper size depending on what client is coming. To avoid many time-wasting mistakes that could occur, for instance someone choosing the wrong printer and wasting paper. Also, the time used to find the right printer for the job and then pressing print is considered too long in the current context.
Is there any solution to this problem? I understand the potential security flaw behind this, but please be aware that this is solely an intranet project and that I can reduce the browser's security to the lowest since they don't access internet.
I know there could be something doable behind IE (ActiveX or VBScript) but I am using firefox. Also, I guess there could also be something rather tricky that when you press print on the browser, it saves what needs to be printed to a DB and then there is an exe app that runs and fetch that DB every set ammount of time and print to the right printer.
Any suggestion would be greatly appreciated. I doubt I am the only one to ever face this issue! :)
Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要编写 Firefox 扩展或插件并将其分发到整个企业。
You need to write a Firefox extension or plugin and distribute it throughout your enterprise.
还有一种替代方法,除了需要更少的设置和开发之外,它甚至可能更快。
如果您位于 Intranet 中,为什么不从服务器而不是浏览器进行打印呢?
您将具有以下优势:
当然,缺点可能是服务器端的额外开发,但这可能更容易。
There's an alternative approach, that might even be faster, besides requiring even less setup and development.
If you are in an intranet, why not print from the server instead of the browser?
You'd have the following advantages:
Of course the downside might be additional development on the server side, but that's probably easier.