Programmatically Block Printing requests for specifice file(.txt extension)?

191 Views Asked by At

I have captured the print event for a specific file(.txt extension). Now I want to block this print event request for that specific file. Is there any way to block the printing job for the specific file(extension .txt) programmatically? I'm using Operating System: Windows 10 and implementing in Python Language.

1

There are 1 best solutions below

0
Nick Westgate On BEST ANSWER

If you have a JobId, use SetJob with Command JOB_CONTROL_CANCEL.