Sub EventOnSubstituteReport(Args: IUiPrxReportBaseSubstitutionEventArgs);
Begin
//set of operators;
End Sub EventOnSubstituteReport;
Args. The parameter, which enables the user to work with event parameters.
The EventOnSubstituteReport method implements system event that occurs on report substitution.
A report can be substituted on exporting, printing or previewing in the OnSubstituteReport event. The EventOnBeforeExportReport method enables the user to redetermine a system event, which occurs after the OnSubstituteReport event.
Public Class EventsClass: Parent
//Handle the OnSubstituteReport event
Public Sub OnSubstituteReport(Args: IUiPrxReportBaseSubstitutionEventArgs);
Begin
//Call system event redetermined in the Parent class
Inherited OnSubstituteReport(Args);
End Sub OnSubstituteReport;
End Class EventsClass;
Public Class Parent: ReportEvents
//Redetermine the EventOnSubstituteReportt system event
Public Sub EventOnSubstituteReport(Args: IUiPrxReportBaseSubstitutionEventArgs);
Begin
//Handle system event
End Sub EventOnSubstituteReport;
End Class Parent;
The EventsClass class is a regular report events handler. On exporting, printing or previewing a report the EventOnSubstituteReport redetermined system event is called, in which report substitution parameters can be changed.
See also: