“静音”是指在Web应用程序中打印 [英] "Silent" Printing in a Web Application

查看:95
本文介绍了“静音”是指在Web应用程序中打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个需要静默打印的Web应用程序-无需用户参与。做到这一点的最佳方法是什么?它并不完全可以使用Javascript,Flash和/或AIR来完成。我见过的最接近的是Java小程序。

I'm working on a web application that needs to prints silently -- that is without user involvement. What's the best way to accomplish this? It doesn't like it can be done with strictly with Javascript, nor Flash and/or AIR. The closest I've seen involves a Java applet.

我可以理解为什么对于任何网站来说,这样做都是一个坏主意。此特定实例用于内部应用程序,并且如果用户需要将URL添加到受信任的站点列表,安装插件等,则完全可以接受。

I can understand why it would a Bad Idea for just any website to be able to do this. This specific instance is for an internal application, and it's perfectly acceptable if the user needs to add the URL to a trusted site list, install an addon, etc.

推荐答案

这是启用Firefox而不显示打印首选项对话框时立即进行打印所需的操作。

Here’s what you need to do to enable Firefox immediately print without showing the print preferences dialog box.


  1. 在Firefox的位置栏中键入about:config,然后按Enter。

  1. Type about:config at Firefox’s location bar and hit Enter.

右键单击页面上的任意位置,然后选择新建>布尔

Right click at anywhere on the page and select New > Boolean

输入首选项名称为print.always_print_silent,然后单击确定。

Enter the preference name as print.always_print_silent and click OK.






我发现某个地方对我有帮助


I found that somewhere and it helped me

这篇关于“静音”是指在Web应用程序中打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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