使用 mozilla 打印到不同的打印机

发布于 2024-09-04 16:49:43 字数 494 浏览 9 评论 0原文

我目前正在创建一个将部署在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

听风念你 2024-09-11 16:49:43

您需要编写 Firefox 扩展或插件并将其分发到整个企业。

You need to write a Firefox extension or plugin and distribute it throughout your enterprise.

莫相离 2024-09-11 16:49:43

还有一种替代方法,除了需要更少的设置和开发之外,它甚至可能更快。

如果您位于 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:

  • Zero setup on the client side (except perhaps choosing a "printer set" according to the location)
  • Zero dependency on the browser setup, version, page configuration, etc
  • More flexibility (depending on the libraries you use to print, you can do things that a browser does not allow)

Of course the downside might be additional development on the server side, but that's probably easier.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文