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.
If you have a JobId, use SetJob with Command JOB_CONTROL_CANCEL.