Click or drag to resize

IBrowserPrintHandler Property

Gets or sets a handler that is used when the printing is initiated.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.0.0
Syntax
C#
IHandler<PrintParameters, PrintResponse> PrintHandler { get; set; }

Property Value

Type: IHandlerPrintParameters, PrintResponse
Remarks

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.

See Also