Sub EventOnAfterAddFormulaIsland(Args: IUiPrxFormulaIslandEventArgs);
Begin
//set of operators;
End Sub EventOnAfterAddFormulaIsland;
Args. The parameter that enables the user to work with event parameters.
The EventOnAfterAddFormulaIsland method implements the event that occurs after adding a formula area.
To implement the event that occurs after deleting formula area, use the IPrxReportUserEvents.EventOnAfterDeleteFormulaIsland method.
Executing the example requires a regular report. Connect a unit to the regular report, select the connected unit an the EventsClass class as an event handler. Add links to the Metabase, Report, Ui system assemblies in the unit.
Class EventsClass: ReportEvents
Public Sub OnAfterAddFormulaIsland(FormulaIsland : IPrxFormulaIsland);
Begin
WinApplication.InformationBox("Formula area is added " + FormulaIsland.Id);
End Sub OnAfterAddFormulaIsland;
Public Sub OnAfterDeleteFormulaIsland(FormulaIsland : IPrxFormulaIsland);
Begin
WinApplication.InformationBox("Formula area is deleted " + FormulaIsland.Id);
End Sub OnAfterDeleteFormulaIsland;
End Class EventsClass;
An information message is displayed when the event occurs.
See also: