NoRecalcOnOpen: Boolean;
The NoRecalcOnOpen property determines state of the Do not Calculate Report on Opening option.
The NoRecalcOnOpen property is ignored if value was set in the IMetabaseObjectParamValuesEx.StateOptions property:
If StateOptions = 1, it is considered that the Do not Calculate Report on Opening checkbox is selected in regular report parameters, that is, NoRecalcOnOpen = True.
If StateOptions = 2, it is considered that the Do not Calculate Report on Opening checkbox is deselected in regular report parameters, that is, NoRecalcOnOpen = False.
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.
See also: