PdfViewerPrintAsync Method |
Prints pages of the document without displaying a dialog.
Namespace: PdfViewer4WinNetAssembly: PdfViewerWinNet (in PdfViewerWinNet.dll) Version: 10.0
Syntaxpublic Task<bool> PrintAsync(
int firstPage,
int lastPage,
string printerName
)
Public Function PrintAsync (
firstPage As Integer,
lastPage As Integer,
printerName As String
) As Task(Of Boolean)
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
TaskBooleantrue if the document was sent to the printer.
See Also