IGxDocument.SectionName

Syntax

SectionName(SectionIndex: Integer): String;

Parameters

SectionIndex. Section index.

Description

The SectionName property returns name of the section with the specified index.

Comments

In regular report a separate sheet is regarded as a section, in express report and workspace the entire document is regarded as a section.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Document: IGxDocument;
    i, c: Integer;
Begin
    MB := MetabaseClass.Active;
    Document := MB.ItemById("REPORT").Bind As IGxDocument;
    c := Document.SectionCount;
    For i := 0 To c - 1 Do
        Debug.WriteLine(Document.SectionName(i));
    End For;
End Sub UserProc;

After executing the example the development environment console displays names of all sheets available during report printing.

See also:

IGxDocument