How to check a print job status with C#
- by Saab
I'm printing a PDF file by executing a commandline application from within my C# application. Now I wanna know when this job is printed. I was hoping there would be some kind of event I could subscribe to, and handle it. But I couldn't find it.
So now I'm resorting to polling. And checking the JobStatus of a PrinterSystemJobInfo object. But in my case this either gives me JobStatus = None or JobStatus = Printing.
PrinterSystemJobInfo.JobStatus
Can someone tell me how to reliably check a print job status using C#?