IPrxSlice.LeftHeader

Syntax

LeftHeader: IPrxSliceHeader;

Description

The LeftHeader property returns the object that contains all slice dimensions located in rows.

Comments

To get objects containing all fixed slice dimensions and dimensions located in columns, use the IPrxSlice.FixedHeader and IPrxSlice.TopHeader properties.

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;
    Report: IPrxReport;
    DtSources: IPrxDataSources;
    DtSource: IPrxDataSource;
    Slices: IPrxSlices;
    Slice: IPrxSlice;
    LeftSlice: IPrxSliceHeader;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById("REPORT").Bind As IPrxReport;
    DtSources := Report.DataSources;
    DtSource := DtSources.Item(0);
    Slices := DtSources.Item(0).Slices;
    Slice := Slices.Item(0);
    Slice.Execute;
    LeftSlice := Slice.LeftHeader;
    Debug.WriteLine("Names of first slice dimensions arranged by rows:");
    For i := 0 To LeftSlice.Count-1 Do
        Debug.WriteLine((i+1).ToString + ". " + LeftSlice.Item(i).Name);
    End For;
End Sub UserProc;

After executing the example the console window displays names of first slice dimension arranged by rows.

See also:

IPrxSlice