IPrxSlice.LeftHeader

Fore Syntax

LeftHeader: IPrxSliceHeader;

Fore.NET Syntax

LeftHeader: Prognoz.Platform.Interop.Report.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.

Fore 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.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Report;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Report: IPrxReport;
    DtSources: IPrxDataSources;
    DtSource: IPrxDataSource;
    Slices: IPrxSlices;
    Slice: IPrxSlice;
    LeftSlice: IPrxSliceHeader;
Begin
    MB := Params.Metabase;
    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;
    System.Diagnostics.Debug.WriteLine("Names of first slice dimension arranged by rows:");
    For i := 0 To LeftSlice.Count-1 Do
        System.Diagnostics.Debug.WriteLine((i+1).ToString() + ". " + LeftSlice.Item[i].Name);
    End For;
End Sub;

See also:

IPrxSlice