How do I detect that which client sends the print request to printer? When a request is sent to server which event will be raised on the server for this print request? I want to detect which user is printing how many pages in a day.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use WMI to monitor the printer.
WMI Tasks: Printers and Printing
http://msdn.microsoft.com/en-us/library/windows/desktop/aa394598%28v=vs.85%29.aspx
Win32_PrintJob
http://msdn.microsoft.com/en-us/library/windows/desktop/aa394370%28v=vs.85%29.aspx
Watch for instance creation of print jobs. PrintJob class has a totalPages.
Use System.Management to use WMI in C#