Click or drag to resize

PdfViewerPrintAsync Method

Prints pages of the document without displaying a dialog.

Namespace: PdfViewer4WinNet.Wpf
Assembly: PdfViewerWinNet (in PdfViewerWinNet.dll) Version: 10.0
Syntax
public Task<bool> PrintAsync(
	int firstPage,
	int lastPage,
	string printerName
)

Parameters

firstPage  Int32
The first page to print (the first page in a document is page 1), or 0 to print the whole document.
lastPage  Int32
The last page to print (ignored when firstPage is 0).
printerName  String
The name of the printer, or null for the default printer.

Return Value

TaskBoolean
true if the document was sent to the printer.
See Also