Read the printer pool for the number of pages to print.

I have a network printer in the classroom. I would like to record how many pages of each student were printed. I want to know how I can read the printer pool to get the number of pages when a student prints. Here is what I mean: Write a Windows service to get:

  • User registered name
  • The number of prints each time they print documents
  • Send username + page count in remote database

What I do not know:

  • how to get the number of pages with each print

If possible, I would like it to be done in VB.NET.

Thank.

+3
source share
1 answer

WMI Win32_PrintJob, . , PagesPrinted TotalPages, , , , . , Status, ( ).

VB.Net:
WMI

System.Management, ​​ .

+3

Source: https://habr.com/ru/post/1759387/


All Articles