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.
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.