Malik Brahimi wrote:
>
> So basically, a print job (.SPL file) is generated during local
> spooling as soon as a document is requested to print. I do NOT want to
> handle this event.
>
> I want to trigger a callback function as soon as a print job reaches a
> print server regardless of whether it begins to immediately print
> there or not. Essentially, even on a high volume network, I want to
> catch the even in which the print job reaches the print server, not
> the event in which the print job is initially created.
>
> Is there anyway to do that with Python? I would also like to get the
> JobId of said print job as this event is caught.

Probably the best you can do is poll using EnumJobs and watch the status
of the job change.  There are no callbacks, at least at the application
level.

Here's the link to the Windows spooler APIs:
    https://msdn.microsoft.com/en-us/library/windows/desktop/dd162861.aspx

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to