IPrxDataIsland.DataRange

Syntax

DataRange: ITabRange;

Description

The DataRange property returns range of the cells containing data.

Comments

When the data area heading or sidehead is deselected, DataRange = 0.

Example

Executing the example requires a regular report with the REPORT identifier.

Add links to the Metabase, Report, Tab system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    DIs: IPrxDataIslands;
    DI: IPrxDataIsland;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById("REPORT").Bind As IPrxReport;
    DIs := Report.DataIslands;
    DI := DIs.Item(0);
    Debug.WriteLine("Cell range, in which data area is located: " + DI.Range.Address);
    Debug.WriteLine("Range of cells, containing data: " + DI.DataRange.Address);
    Debug.WriteLine("Number of cells, containing data: " + DI.DataRange.Count.ToString);
End Sub UserProc;

After executing the example the console window displays the key of the relational data area:

See also:

IPrxDataIsland