GetDataRange: ITabRange;
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.
See also: