Skip to Content

Cancel printing and show progress where using ReportDocument.PrintToPrinter or PrintOutputController

May 17, 2017 at 08:24 AM


avatar image
Former Member

There is a way to cancel printing and to be notified of printing progress when I use the method ReportDocument.PrintToPrinter or the PrintOutputController to print directy?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Don Williams
May 17, 2017 at 06:23 PM


No, once the print job starts you cannot interrupt the job in our SDK, you would only be able to use Windows API's to stop the PrintServer from printing if that's possible. Googling for the process to do so would be a good start to see if it's possible to cancel a job in Windows.

Same for Previewing or Exporting. You could spawn a thread for each and kill the thread is the only way to stop the progress.

As for the Progress indicator P2P should show it, for the POC I had an enhancement request done and it should be available in SP 21 due out in August.


10 |10000 characters needed characters left characters exceeded