Monitoring the Print Queue

joe_pool_is

Contributor
Joined
Jan 18, 2004
Messages
507
Location
Longview, TX [USA]
What could I do to monitor the Windows print queue?

We have a Datamax label printing machine that creates serial numbers for our products.

Occasionally, it is out of media, has a jam, is powered off, etc. In those cases, the serial number is lost.

All I want to do is void a serial number in our database if the job I sent to the printer was unsuccessful.

The printer is local and has the name "Datamax".
The PC is running Windows XP.
We are developing under Visual Studio 2005 Professional.

The closest code examples I have found used a ManagementObjectCollection object, but they do not get into details on how to do what I need to accomplish.

I'd like to avoid having to use specific SDK calls to the Datamax printer (if there is such a thing) because there has been talk about trying to find a more reliable printer.

Thanks for any help,
Joe
 
Back
Top