Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catching Network Print Jobs

Status
Not open for further replies.

txmed

Programmer
Mar 23, 2006
65
US
Greetings! I'm working on a application that catches all print jobs sent to a printer. I was able to get this to work by using a FileSystemWatcher object to watch for new files created in the "C:\WINDOWS\system32\spool\PRINTERS\" directory. When this event is fired, I use WMI to query the print job to get certain information about the job (i.e. printer name, document name, number of pages, etc).

This works great for local printers, but how would I configure this to work for network printers? Is there a way I can watch for print jobs sent to network printers so that I can catch the information? This is a very frustrating problem and I need to try to resolve it as quickly as possible.

Thank you in advance for your help!

(txmed)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top