RangeCount: Integer;
The RangeCount property returns the number of print ranges.
The entire document, the current page or the selected range is understood by the print range.
Sub Main;
Var
MB: IMetabase;
Docum: IGxDocument;
i: Integer;
Begin
MB:=MetabaseClass.Active;
Docum:=MB.ItemById("Report").Bind As IGxDocument;
i:=Docum.RangeCount;
End Sub Main;
After executing the example the "i" variable contains the number of object print ranges with the Report identifier.
See also: