Table of Contents
PdfViewer.Print Method 

Print the PDF file that is currently loaded in the PdfViewer.

Syntax
 public WaitableTask Print(
   PrinterSettings printerSettings = null,
   PageSettings pageSettings = null
);

Parameters

printerSettings
Set the default printer settings. Pass null to display the print dialog to ask user for the settings.
pageSettings
Set the default page settings. Pass null to use DefaultPageSettings of the printerSettings argument.

Implements

IPdfViewer.Print
Remarks

If a valid printerSettings value is supplied, then the print dialog will not be shown. The following code demonstrates how to "silent print" with the default printer:

PdfViewer1.Print(EO.WebBrowser.WebView.GetDefaultPrinterSettings());

See Also