IDialogsSaveAsPdfHandler Property |
Namespace: DotNetBrowser.Browser.Dialogs
IHandler<SaveAsPdfParameters, SaveAsPdfResponse> SaveAsPdfHandler { get; set; }
Exception | Condition |
---|---|
ObjectDisposedException | The IBrowser has already been disposed. |
ConnectionClosedException | The connection to the Chromium engine is closed. |
You can use this handler to display the save dialog, or provide the full file path without displaying any dialogs.
Use the SaveToFile(String) method to provide the selected files to the browser.
Use the Cancel method to cancel the dialog.
If the handler throws an exception, the Cancel method will be invoked.