如何防止用户打印HTML页面的多个副本? [英] How can I prevent the user from printing multiple copies of a HTML page?

查看:88
本文介绍了如何防止用户打印HTML页面的多个副本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,如果我们打印页面,它将打印整个页面,并且我们有选项可打印份数。问题在于,我的erp应用程序i 不想在打印对话框中输入份数,不知何故该选项应该通过程序(或)禁用
我的页面应该打印只有一个副本,而不需要打印对话框本身。



因此,打印选项应该可用,但我希望用户只能打印我的页面的一个副本。如何做到这一点? 解决方案

忘掉它,除了构建自己的浏览器外,没有什么可以做的:D并强制用户使用只有那一个。

Usually if we print a page it will print the whole page and we have option to print number of copies. Here is the problem, for my erp application i don't want to give number of copies in the print dialog, somehow that option should disable through program (or) my page should print with only one copy without going to the print dialog box itself.

So, the print option should be available, but I want the user to be only able to print one copy of my page. How to achieve this?

解决方案

Forget about it, nothing you can do except building your own browser :D and force users to use only that one.

这篇关于如何防止用户打印HTML页面的多个副本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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