Logging Custom Data To Print Database 追蹤
I would like to log some addtional data when labels are printed and was wondering the best course of action to take. I am currently using Enterprise Automation Version: 9.4 SR3 on a web server to print all labels but what I would like to do is relate a lotnumber to the actual print job.
We are in an FDA regulated environment and part of the regulations to go paperless is to be able to pull an image of the label for every print job by lot number at will. I have figured out how to setup the database to store an image for every print job and setup the standard logging just fine, but relating the lot number to the print job is fairly difficult. What I have tried thus far unsuccessfully is to create the PrintLabelFormatTask and before I queue the task, I register an event on the JobSent event handler to log the printjobid and the corresponding lot number to another database table. It appears to register the event, but it never seems to fire off once the job has been sent to the print spooler. Is there another way to accomplish this task?