CorrectChartRanges: Boolean;
The CorrectChartRanges property determines whether chart range is corrected after changing of data area sidehead and heading.
A chart range is corrected only in case if the entire data area range is used as a chart data source .
Available values:
True. Chart range after changing of data area sidehead and heading will be corrected.
False. Default value. Chart range after changing of data area sidehead and heading will not be corrected.
Executing the example requires a regular report with the 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("REPORT").Edit;
Report := MOBj As IPrxReport;
Options := Report.Options;
Options.CorrectChartRanges := True;
MOBj.Save;
End Sub UserProc;
After executing the example on deselecting the data area sidehead and heading and the further adding a selection, chart range is correctly restored.
See also: