Skip to main content

PdfViewer.Print() Method

Invokes a Print dialog and prints the current document using the print settings specified in this dialog window.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v23.2.dll

NuGet Package: DevExpress.Win.PdfViewer

Declaration

public void Print()

Remarks

When you call the Print method, a Print dialog is invoked. This handles the PdfViewer.PageSetupDialogShowing event. This event allows you to get access to the printer settings using the PdfPageSetupDialogShowingEventArgs.PrinterSettings property, change the location, start position and size of the PDF printing dialog using PdfPageSetupDialogShowingEventArgs.FormLocation, PdfPageSetupDialogShowingEventArgs.FormStartPosition and PdfPageSetupDialogShowingEventArgs.FormSize properties.

See Also