Skip to main content
A newer version of this page is available. .

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.v18.2.dll

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.

After clicking OK in this dialog, the current document is printed using the specified settings.

See Also