TdxPageSetupDialog.OnCustomDrawPreview Event
Occurs when the “Margins“ tab of the Page Setup dialog window is displayed.
Declaration
property OnCustomDrawPreview: TdxCustomDrawPreviewEvent read; write;
Remarks
Write the OnCustomDrawPreview event handler to draw a specific preview within the “Preview“ section of the “Margins“ tab. Use this event to display your own preview picture for your report. The ACanvas parameter determines the drawing canvas. The APageRect, AContentRect, AHeaderRect, and AFooterRect parameters specify the bound rectangle for page, content, header and footer drawing.
Keep in mind that the OnCustomDrawPreview event handler must be a full drawing procedure.
See Also