BeginRecalc: IPrxReportRecalcContext;
The BeginRecalc method creates a context for calculation, the link to which is stored within the report when it is called the next time.
Calculation context is created when the method is called the first time.
Executing the example requires a regular report with the PRX_REPORT identifier.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
Context: IPrxReportRecalcContext;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("PRX_REPORT").Edit;
Report := MObj As IPrxReport;
UiReport1.Instance := report;
Context := Report.BeginRecalc;
Context.RecalcDataIsland(Report.DataIslands.Item(1)) := TriState.OnOption;
Report.RecalcC(Context);
End Sub Button1OnClick;
Executing this example creates context of regular report calculation using the BeginRecalc method, the data area to be calculated is defined in this context.
See also: