DotNetBrowser
1.21.5
|
Allows handling printing initiated by Browser.Print method or More...
Public Member Functions | |
PrintStatus | OnPrint (PrintJob printJob) |
This method is invoked when engine wants to get custom print settings and decide whether it should continue printing or not. If this method throws an exception, then printing will be canceled. This method will not block web browser engine. It's invoked asynchronously. You can display in this method Modal UI Print Dialog to ask user for custom print settings. More... | |
Allows handling printing initiated by Browser.Print method or
window.print()
JavaScript on the web page. You can use handler to get default print settings, provide custom print settings or cancel printing.
PrintStatus DotNetBrowser.PrintHandler.OnPrint | ( | PrintJob | printJob | ) |
This method is invoked when engine wants to get custom print settings and decide whether it should continue printing or not. If this method throws an exception, then printing will be canceled. This method will not block web browser engine. It's invoked asynchronously. You can display in this method Modal UI Print Dialog to ask user for custom print settings.
printJob | Active print job. Use it to access default print settings and modify them. |