IPrxReportUserEvents.EventOnBeforeExportReport

Syntax

Sub EventOnBeforeExportReport(Args: IUiPrxExportCancelEventArgs);

Begin

// set of operators

End Sub EventOnBeforeExportReport;

Parameters

Args. The parameter, which enables the user to work with event parameters.

Description

The EventOnBeforeExportReport method implements the event that occurs before regular report export.

Comments

The EventOnBeforeExportReport method allows for redetermining a system event that occurs after the OnBeforeExportReport event.

Example

To execute the example, add a link to the Report system assembly. The EventsClass class is a regular report event handler.

Public Class EventsClass: Parent
    Public Sub OnBeforeExportReport(Report: IPrxReport; Var Cancel: Boolean);
    Begin
        //Call system event redetermined in the Parent class
        Inherited OnBeforeExportReport(Report, Cancel);
    End Sub OnBeforeExportReport;
    Public Sub OnAfterExportReport(Report: IPrxReport);
    Begin
        //Call system event redetermined in the Parent class
        Inherited OnAfterExportReport(Report);
    End Sub OnAfterExportReport;
End Class EventsClass;
Public Class Parent: ReportEvents
    //Redetermine the EventOnBeforeExportReport system event
    Public Sub EventOnBeforeExportReport(Args: IUiPrxExportCancelEventArgs);
    Begin
        //Handle system event
    End Sub EventOnBeforeExportReport;
    //Redetermine the EventOnAfterExportReport system event
    Public Sub EventOnAfterExportReport(Args: IUiPrxExportEventArgs);
    Begin
        //Handle system event
    End Sub EventOnAfterExportReport;
End Class Parent;

On exporting a report the EventOnBeforeExportReport redetermined system event is called, in which export parameters can be changed.

See also:

IPrxReportUserEvents