TCustomdxComponentPrinter.OnInitializePrintDlgData Event
Allows you to customize Print dialog appearance before it is displayed.
Declaration
property OnInitializePrintDlgData: TdxPrintDlgDataEvent read; write;
Remarks
The Sender parameter provides access to the current component printer.
The AReportLink parameter provides access to the report link that raised the OnInitializePrintDlgData event.
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.