CorrectChartRanges: Boolean;
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.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
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["REPORT"].Edit();
Report := MOBj As IPrxReport;
Options := Report.Options;
Options.CorrectChartRanges := True;
MOBj.Save();
End Sub;
See also: