msd 5 Posted March 1, 2023 Hello, I have a problem with failed printer jobs. When I have one failed printer job, all the rest are on hold, and there are no prints. So, I need some ideas on how to empty all or just failed printer jobs from the printer to free a new one. I'm using Fats Report from Delphi, and if there are ideas from the Fast Report API, that is okay also. Thanks in advance... Share this post Link to post
mvanrijnen 123 Posted March 1, 2023 🙂 Print Spooler API Functions - Win32 apps | Microsoft Learn Share this post Link to post
A.M. Hoornweg 144 Posted March 2, 2023 Run a "command prompt" as administrator (=elevated). Enter the command Net Stop SPOOLER and confirm with the Enter key. Enter the command Del c:\windows\system32\spool\printers\*.* and confirm. This will delete old print jobs. Enter the command Net Start SPOOLER and confirm. Close the command prompt window. You can easily put this code into a batch file (*.cmd), but remember that it must be run in elevated mode. You can also write a Delphi program that performs the same steps, but its "bitness" should match that of your Windows version and the manifest must specify the execution level "require administrator". Share this post Link to post