IPrxReport.CreateRecalcContext

Fore Syntax

CreateRecalcContext: IPrxReportRecalcContext;

Fore.NET Syntax

CreateRecalcContext : Prognoz.Platform.Interop.Report.IPrxReportRecalcContext;

Description

The CreateRecalcContext method creates a new calculation context not linked to a report, that is, no link to this context is stored in the report.

Comments

Calculation context is the object, in which calculation parameters are specified.

Fore Example

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.CreateRecalcContext;
        Context.RecalcDataIsland(Report.DataIslands.Item(0)) := TriState.OnOption;
        Report.RecalcC(Context);
    End Sub Button1OnClick;

Executing the example creates a context of regular report calculation using the CreateRecalcContext method, the data area to be calculated is specified in this context.

See also:

IPrxReport