IPrxReportOptions.NoRecalcOnOpen

Fore Syntax

NoRecalcOnOpen: Boolean;

Fore.NET Syntax

NoRecalcOnOpen: boolean;

Description

The NoRecalcOnOpen property determines state of the Do not Calculate Report on Opening option.

Comments

The NoRecalcOnOpen property is ignored if value was set in the IMetabaseObjectParamValuesEx.StateOptions property:

Fore Example

Executing the example requires a regular report with the REGULAR_REPORT identifier.

Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MOBj: IMetabaseObject;
    Report: IPrxReport;
    Options: IPrxReportOptions;
Begin
    MB := MetabaseClass.Active;
    MOBj := MB.ItemById("REGULAR_REPORT").Edit;
    Report := MOBj As IPrxReport;
    Options := Report.Options;
    Options.NoRecalcOnOpen := True;
    MOBj.Save;
End Sub UserProc;

After executing the example the Do not Calculate Report on Opening checkbox is selected for a regular report sheet located in the Report Parameters dialog box on the Settings tab.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MOBj: IMetabaseObject;
    Report: IPrxReport;
    Options: IPrxReportOptions;
Begin
    MB := Params.Metabase;
    MOBj := MB.ItemById["REGULAR_REPORT"].Edit();
    Report := MOBj As IPrxReport;
    Options := Report.Options;
    Options.NoRecalcOnOpen := True;
    MOBj.Save();
End Sub;

See also:

IPrxReportOptions