GetDataRange: ITabRange;
GetDataRange: Prognoz.Platform.Interop.Tab.;
The GetDataRange property returns a cell range, by which a chart is built.
Use the IEaxChart.Range property to determine the range of selected table area, by which a chart is built.
Executing the example requires an express report with the EXPRESS_REPORT identifier.
Add links to the Metabase, Express, Tab system assemblies.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
EChart: IEaxChart;
Range: ITabRange;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("EXPRESS_REPORT").Edit;
Expr := MObj As IEaxAnalyzer;
EChart := Expr.Chart;
Range := EChart.GetDataRange;
End Sub UserProc;
After executing the example the Range variable contains a cell range, by which the express report chart is built.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example.
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Tab;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
EChart: IEaxChart;
Range: ITabRange;
Begin
MB:=Params.Metabase;
MObj := MB.ItemById["EXPRESS_REPORT"].Edit();
Expr := MObj As IEaxAnalyzer;
EChart := Expr.Chart;
Range := EChart.GetDataRange;
End Sub;
See also: