PdfViewer.PageSetupDialogShowing Event
Occurs when displaying the Print dialog in the PDF Viewer.
Namespace: DevExpress.XtraPdfViewer
Assembly: DevExpress.XtraPdfViewer.v24.2.dll
NuGet Package: DevExpress.Win.PdfViewer
#Declaration
public event PdfPageSetupDialogShowingEventHandler PageSetupDialogShowing
#Event Data
The PageSetupDialogShowing event's data class is PdfPageSetupDialogShowingEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Form |
Gets or sets the point that specifies the screen coordinates of the form’s upper-left corner. |
Form |
Gets or sets the size of the PDF page setup dialog. |
Form |
Gets or sets the form start position at runtime. |
Minimum |
Gets the form’s minimum size. |
Printer |
Provides access to the PDF printer settings. |
#Remarks
The PageSetupDialogShowing
event allows you to control the size and location of a Print dialog.
Handle the PageSetupDialogShowing
event to access the PdfPrinterSettings object (the PdfPageSetupDialogShowingEventArgs.PrinterSettings property) and toggle legacy printing engine (the EnableLegacyPrinting property).
private void PdfViewer_PageSetupDialogShowing(object sender, PdfPageSetupDialogShowingEventArgs e)
{
e.PrinterSettings.EnableLegacyPrinting = true;
}