Sub EventOnBeforeExportReport(Args: IUiPrxExportCancelEventArgs);
Begin
// set of operators
End Sub EventOnBeforeExportReport;
Public Override Sub EventOnBeforeExportReport(Args: Prognoz.Platform.Interop.Report.UiPrxExportCancelEventArgs);
Begin
// set of operators
End Sub EventOnBeforeExportReport;
Args. The parameter, which enables the user to work with event parameters.
The EventOnBeforeExportReport method implements the event that occurs before regular report export.
The EventOnBeforeExportReport method enables the user to redetermine a system event, which occurs after the OnBeforeExportReport event.
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;
The EventsClass class is a regular report events handler. On exporting a report the EventOnBeforeExportReport redetermined system event is called, in which export parameters can be changed.
Imports Prognoz.Platform.Interop.Report;
Public Class EventsClass: Parent
Public Override Sub OnBeforeExportReport(Report: IPrxReport; Var Cancel: Boolean);
Begin
//Call system event redetermined in the Parent class
Inherited OnBeforeExportReport(Report, Var Cancel);
End Sub OnBeforeExportReport;
Public Override Sub OnAfterExportReport(Report: IPrxReport);
Begin
//Call system event redetermined in the Parent class
Inherited OnAfterExportReport(Report);
End Sub OnAfterExportReport;
End Class;
Public Class Parent: PrxForeNetReportUserEventsClass
//Redetermine the EventOnBeforeExportReport system event
Public Override Sub EventOnBeforeExportReport(Args: UiPrxExportCancelEventArgs);
Begin
//Handle system event
End Sub EventOnBeforeExportReport;
//Redetermine the EventOnAfterExportReport system event
Public Override Sub EventOnAfterExportReport(Args: UiPrxExportEventArgs);
Begin
//Handle system event
End Sub EventOnAfterExportReport;
End Class Parent;
The EventsClass class is a regular report events handler. On exporting a report the EventOnBeforeExportReport redetermined system event is called, in which export parameters can be changed.
See also: