Lose the printjob properties in JobDeleted event

Topics: Developer Forum
Jul 22, 2007 at 4:11 PM
I want to capture the completed printjobs in JobDeleted event, there are 2 problems appear i my program:

1.partial printjobs just included PagesPrinted, did not include other properties, such as such as PrinterName, Document and PagesPrinted.
2.the job id looks like not unique for one printer. In my result, the same JobID has different document property.

How can I resolve this problem?

Jul 22, 2007 at 10:27 PM
1. Most info comes in the JobAdded so capture that and then update it all on each new event.

2. The job id is unique per print queue but not for all eternity i.e. it goes to 9999 so will roll over and also it gets reset every time you restart the server.