IPrxReportOptions.CorrectChartRanges

Fore Syntax

CorrectChartRanges: Boolean;

Fore.NET Syntax

CorrectChartRanges: boolean;

Description

The CorrectChartRanges property determines whether chart range is corrected after changing of data area sidehead and heading.

Comments

A chart range is corrected only in case if the entire data area range is used as a chart data source .

Available values:

Fore Example

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.

Fore.NET Example

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:

IPrxReportOptions