捕获ctrl + p和打印文档命令,限制用户打印的内容 [英] Catch ctrl+p and print document command,Restrict users what they print

查看:412
本文介绍了捕获ctrl + p和打印文档命令,限制用户打印的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

场景:使用网络打印机在网络上连接的用户都可以使用打印权限。



问题:想要控制的不是谁可以打印而是打印什么。每当来自客户端机器的用户按下ctrl + p或在任何应用程序中打印时,我想暂停Windows打印程序,从那里生成我的对话框向高级员工发送请求,'A'用户请求打印名为'B'的文件' C'细节,如果高级员工允许然后让Windows继续正常的打印程序



1.是否有任何事件或方法在c sharp或一般告诉我们用户已按下ctrl任何应用程序中的+ P或打印按钮。



2.如果这种方法不好我应该如何控制打印。

Scenario: Users connected on a network using network printers all users are allowed printing rights.

Problem: Want to control not who can print rather what they print. Whenever a user from client machine presses ctrl+p or print in any application i would like to pause windows printing procedure from there generate my dialog box send a request to superior staff that 'A' user requested to print document named 'B' with 'C' details if superior staff allows then let windows continue normal printing procedure

1. Is there any event or method in c sharp or generally that tells us user has pressed ctrl+P or print button in any application.

2. if this approach is not good how should i control printing.

推荐答案

我看到卡车负载问题这样做,当主管没有坐在电脑前给出批准时会发生什么?



没有任何事件说有东西试图打印。关于您要做的最好的事情是将所有打印机连接到中央打印服务器并从那里控制队列。也许暂停队列会让工作进入,但不能打印。您可以看到新作业何时出现WMI创建事件,但这不是实时。



您无法在打印期间暂停作业,因为打印机将有一份部分工作发给它,等待其余的。如果主管取消工作怎么办?



此外,并不是每个工作都会有一个好看的名字,你不会得到一个好的图片显示你的主管他可以看到打印作业。
I see a truck load of problem with doing this, not the least of which is what happens when the supervisor isn't sitting in front of their computer to give the approval??

There is no event that says "something is trying to print." About the best you're going to do is connect all the printers to a central print server and control the queue from there. Maybe pausing the queue will let jobs in, but not print. You can see when new jobs show up with a WMI "create" event, but that's not exactly real time.

You cannot pause a job during printing because the printer will have a partial job sent to it, waiting for the rest. What if the supervisor cancels the job??

Also, not every job is going to have a nice name to look at and you're not going to get a nice picture to show your supervisor he can see the print job.


这篇关于捕获ctrl + p和打印文档命令,限制用户打印的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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