Tuesday, August 16, 2005

Printer Queue Monitoring via VB.NET and Windows/Winspool.drv API

The Code Project - How to monitor a printer queue from VB.NET - VB.NET

"Although the VB.NET printer handling has improved immeasurably over that offered by Visual Basic 6 there is still a need to turn to the Windows API in order to monitor a print queue. ..."

A nice example on how to monitor Print Queues from VB.NET using API calls.

I'm doing this in VB6 now, but will be moving this to .Net soon, so this info might come in handy.

Another approach is to use WMI. Sometimes though, depending on the printer driver, I've run into problems using WMI. So the fall-back is to use the API...

1 comment:

Anonymous said...
This comment has been removed by a blog administrator.