CodeSculptor
Programmer
(Using C++ in Visual Studio 2005)
From our application, we want to print a "raw" data file to the printer, and verify that the job was actually printed. Using the Win32 API (EnumJobs, GetPrinter, etc.), we are somewhat able to check on the status of the printjob; However, in certain circumstances (such as if the printer tray is open), the job is de-spooled and no longer in the print queue, and so the Win32 API gives us no status on that job. It is not until the second or third job is sent (tray still open) that things get stopped up in the print queue, and we can get a status of the jobs still in the queue, but our app has no way to determine the success or failure of the initial job.
So the questions are:
1. Is there a way to get the status of a print job (all the way to the output tray, not just that it de-spooled) using the Windows spooler?
2. Is there a way to get the same status using something other than the Windows spooler?
From our application, we want to print a "raw" data file to the printer, and verify that the job was actually printed. Using the Win32 API (EnumJobs, GetPrinter, etc.), we are somewhat able to check on the status of the printjob; However, in certain circumstances (such as if the printer tray is open), the job is de-spooled and no longer in the print queue, and so the Win32 API gives us no status on that job. It is not until the second or third job is sent (tray still open) that things get stopped up in the print queue, and we can get a status of the jobs still in the queue, but our app has no way to determine the success or failure of the initial job.
So the questions are:
1. Is there a way to get the status of a print job (all the way to the output tray, not just that it de-spooled) using the Windows spooler?
2. Is there a way to get the same status using something other than the Windows spooler?