Count: Integer;
The Count property returns the number of sheets in the regular report.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
Sheets: IPrxSheets;
i: Integer;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Bind;
Report := MObj As IPrxReport;
Sheets := Report.Sheets;
i := Sheets.Count;
End Sub Main;
After executing the example the "i" variable will contain the number of sheets in the regular report. The identifier of the regular report - Report.
See also: