OnBeforeRecalcSheet(Sender: Object; Args: IUiPrxSheetCancelEventArgs);
Sender. Parameter that returns the component that has generated the event.
Args. The parameter that enables the user to determine event parameters.
The OnBeforeRecalcSheet event occurs before calculating the regular report sheet.
Executing the example requires that the unit is connected as an event handler.
Public Sub OnBeforeRecalcSheet(Sheet: IPrxSheet; Var Cancel: Boolean);
Var
Sheets : IPrxSheets;
Begin
If Sheet.Name = "Sheet2" Then
Sheets := Sheet.Sheets;
Sheets.FindByName("Sheet3").Recalc;
End If;
End Sub OnBeforeRecalcSheet;
After executing the example on updating the sheet named Sheet2, the sheet named Sheet3 will be updated.
See also: