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

TCustomdxComponentPrinter.OnInitializePrintDlgData Event

In This Article

Enables you to customize the Print dialog‘s appearance and specify event handlers notifying about dialog visibility changes and end-user actions performed within this dialog.

#Declaration

Delphi
property OnInitializePrintDlgData: TdxPrintDlgDataEvent read; write;

#Remarks

The Sender parameter provides access to the current component printer.

The AReportLink parameter provides access to a link whose report is being printed.

Use the APrintDlgData parameter to:

  • Specify the visibility and accessibility of UI elements within a printer dialog (APrintDlgData.ButtonsEnabled, APrintDlgData.OptionsVisible, APrintDlgData.ButtonsVisible, and APrintDlgData.OptionsEnabled).

  • Specify the printer dialog window’s caption (APrintDlgData.Title).

  • Modify the default values of a printer dialog’s entry fields (APrintDlgData.DialogData).

  • Enable file name and page range validations (APrintDlgData.IsCheckUserInput).

  • Assign event handlers notifying about printer dialog visibility changes, or clicking the Page Setup button (APrintDlgData.Events).

Refer to the TdxPrintDlgData type description to learn about APrintDlgData parameter values.

See Also