RangeName(RangeIndex: Integer): String;
RangeIndex. Index of the print range.
The RangeName property returns print range name with the specified index.
Executing the example requires that the repository contains a regular report with the REPORT identifier.
Sub UserProc;
Var
MB: IMetabase;
Document: IGxDocument;
i, c: Integer;
Begin
MB := MetabaseClass.Active;
Document := MB.ItemById("REPORT").Bind As IGxDocument;
c := Document.RangeCount;
For i := 0 To c - 1 Do
Debug.WriteLine(Document.RangeName(i));
End For;
End Sub UserProc;
After executing the example the development environment console displays names of all ranges available during report printing.
See also: