Skip to main content
All docs
V26.1
  • TdxReportControlNotifyEvent Type

    The procedural type for general report-related notification events in a TdxReportControl component.

    Declaration

    TdxReportControlNotifyEvent = procedure(ASender: TdxCustomReportControl) of object;

    Parameters

    Name Type Description
    ASender TdxCustomReportControl

    Provides access to the Report control that raised the notification event.

    Tip

    Cast the ASender parameter value to the TdxReportControl class to access all public API members.

    Remarks

    Handle report-related notification events to execute custom code in response to certain changes in your ExpressReports-powered application.

    Code Example: Save Report Layout to File on Every Change

    The following code example saves the current Report layout to a file in the REPX format every time a user saves pending changes in the Report Designer dialog:

    uses
      dxReport.Control;  // Declares the TdxReport class
    // ...
    
    procedure TMyForm.dxReport1LayoutChanged(ASender: TdxCustomReportControl);
    begin
      ASender.Layout.SaveToFile(ASender.ReportName + '.xml');
    end;
    

    Direct TdxReportControlNotifyEvent Type Reference

    The TdxCustomReportControl.OnLayoutChanged event references the TdxReportControlNotifyEvent procedural type.

    See Also