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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the printer name from a spooled job

Status
Not open for further replies.

Griffyn

Programmer
Jul 11, 2002
1,077
AU
Hi all,

My original design was to simply open the the job's .SHD (shadow) file (in the spooler folder) and jump to the location of the printer name in it, but it turns out that the printer name isn't in the same location every time, and I can't find a pointer to it's location in the file.

If there's another way to get the printer name from a spooled file, I'd like to hear it! Is there a way to interrogate the spooler service? Should I be writing a dummy printer driver - the jobs I'm scanning don't actually need to be printed, I'm grabbing the printer name, and a couple of details from the .SPL file (transaction numbers) and then deleting the job.

Any thoughts or help would be much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top