Get information from printer

  • Thread starter Thread starter Mortel
  • Start date Start date
M

Mortel

Hi,

How I can get information from printer about count of copy pages, who's
print pages etc. I want monitoring printers and save that information to
file log. Maybe printer has any events to do that ?
Thank's for all.

Boniek
 
Hi,

This is possible with API calls and P/Invoke.
With OpenPrinter, GetPrinter, SetPrinter and ClosePrinter you can get the
status and the settings from a printer.
With EnumPrinter you can enum all printers available on a machine, at a
server or in a domain.

For PrintJobs there is EnumPrintJobs the right API call.

For events you should use FindFirstPrinterNotification,
FindNextPrinterNotification and FindClosePrinterNotification.

I hope this helps.

Cheers,
Ralf
 
Back
Top