PrintJobStatus not changing
Posted: Tue Mar 12, 2019 8:08 pm
So working on an SDK proof of concept console app with Asynchronous printing. I have the following code that I have grabbed from the SDK Examples for Asynchronous printing.
I have created the events necessary but when I go to check the status, these events are never hit. The job status essentially stays at Created for the print job and Unknown for the Spooler status. I am unsure if this is a driver related issue or a code related issue. Any insight on troubleshooting this issue would helpful thanks.
Code: Select all
// Print the specified number of labels and retrieve the PrintRequest interface. this.printRequest = label.PrintAsync(1); // Add handler for the PrintRequest's PrintJobStatusChanged event this.printRequest.PrintJobStatusChanged += this.PrintRequest_PrintJobStatusChanged; // Add handler for the PrintRequest's SpoolJobStatusChanged event this.printRequest.SpoolJobStatusChanged += this.PrintRequest_SpoolJobStatusChanged;