IBrowserPrintHandler Property |
Namespace: DotNetBrowser.Browser
IHandler<PrintParameters, PrintResponse> PrintHandler { get; set; }
In this callback you can cancel or allow showing print preview dialog.
By default print preview dialog will not be shown.
Use the ShowPrintPreview method to show the print preview.
Use the Cancel method to cancel printing.
If an exception occurs inside the handler implementation, the default behavior will be applied - the method Cancel will be used.
Important: do not use ShowPrintPreview if the browser is not displayed. In this case, the dialog will not be visible - as a result, the end user will not be able to close it or confirm printing.