Table Getting

To work with data table, the ITabSheet interface is used.

The section contains different methods how to get table:

Getting Table from Regular Report

The example how to get the table from regular report with REPORT_TAB identifier is given.

Example

Executing the example requires to add links to the Metabase, Report, Tab assemblies.

Sub GetTable;
Var
    mb: IMetabase;
    Report: IPrxReport;
    Table: ITabSheet;
Begin
    // Get current repository
    mb := MetabaseClass.Active;
    // Get regular report
    Report := mb.ItemById("REPORT_TAB").Bind As IPrxReport;
    // Get table
    Table := (Report.ActiveSheet As IPrxTable).TabSheet;
End Sub GetTable;

Getting Table from Express Report

The example how to get the table from express report with the OLAP_TAB identifier is given.

Example

Executing the example requires to add links to the Express, Metabase, Tab system assemblies.

Sub GetTable;
Var
    mb: IMetabase;
    Report: IEaxAnalyzer;
    Table: ITabSheet;
Begin
    // Get current repository
    mb := MetabaseClass.Active;
    // Receive express report
    Report := mb.ItemById("OLAP_TAB").Bind As IEaxAnalyzer;
    // Get table
    Table := Report.Grid.TabSheet;
End Sub GetTable;

See also:

General Programming Principles Using the Tab Assembly