Using the Print Progress Dialog
The system-supplied Print Progress dialog is displayed on the first execution of the print statement when the suppressDialog property is set to the default value of false.
The current page number and the user-supplied title are displayed.
The Print Progress dialog contains two buttons, as follows.
-
The Cancel button cancels the print function and discards the output. Print_Cancelled is returned in response to the print statement.
-
The Stop button terminates the printing but does not discard the output. Print_Stopped is returned in response to the print statement.
Your method should contain code to logically end print processing if a Print_Cancelled or Print_Stopped value is returned. (For details, see the Printer class print method.)