SectionName(SectionIndex: Integer): String;
SectionIndex. Section index.
The SectionName property returns name of the section with the specified index.
In regular report a separate sheet is regarded as a section, in express report and workspace the entire document is regarded as a section.
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: