Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    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.


    Add comment
    10|10000 characters needed characters exceeded