Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfViewer.Print() Method

In This Article

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

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v24.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