Tech Support > Microsoft Windows > Development Resources > Issues in Printer Monitoring
Issues in Printer Monitoring
Posted by Pankaj on December 28th, 2006


Hi all,

I am trying to monitor a printer, with the help of
Find*PrinterChangeNotification API set. The following are my
observations:

1. Status notification is not received for any type of Print job, i.e
be it in EMF format or RAW format. In case of Status String
notification, the notification was there, but the pBuf was empty.

2. In case of print job with EMF data type, the Total Pages and Printed
pages data was received correctly. Also notification and data for Total
Bytes and Printed Bytes is received. So, in this way it can be
monitored for a EMF type job that whether it has finished. (since the
total pages and printed pages or total bytes and printed bytes can be
compared)

3. In case of print job with RAW format, Total pages was received with
correct values, but Printed Pages was always recieved with the value 0.
Total Bytes was OK, but at the end of the print job, the Total Bytes
and Printed Bytes were different, the latter being lesser then former.
So, it doesn't help in determining that whether a print job is finished
or not.

Can some one please help me with the first and third points, so that
print jobs can be monitored.
Thanks
Pankaj


Similar Posts