Table of Contents
  • Getting Started
  • EO.Pdf
  • EO.Web
  • EO.WebBrowser
  • EO.Wpf
  • Common Topics
  • Reference
    • .NET API Reference
      • EO.Base
      • EO.Base.UI
      • EO.Extensions
      • EO.Pdf
      • EO.Pdf.Acm
      • EO.Pdf.Contents
      • EO.Pdf.Drawing
      • EO.Pdf.Mvc
      • EO.Web
      • EO.WebBrowser
      • EO.WebBrowser.DOM
      • EO.WebEngine
      • EO.WinForm
      • EO.Wpf
      • EO.Wpf.Gauge
      • EO.Wpf.Gauge.Shapes
      • EO.Wpf.Primitives
      • EO.Wpf.Themes.Aero
      • EO.Wpf.Themes.Classic
      • EO.Wpf.Themes.Luna
      • EO.Wpf.Themes.Metro
      • EO.Wpf.Themes.Royale
    • JavaScript API Reference
PrintExtensions.PrintAsync Method 

Asynchronously print the current content.

Syntax
 public static Task<T> PrintAsync(
   IPrintable printable,
   PrinterSettings printerSettings = null,
   PageSettings pageSettings = null
);

Parameters

printable
A WebView or a PdfViewer object.
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.
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