ThisSheetPagesCount: Integer;
The ThisSheetPagesCount property returns the number of pages in the specified express report sheet.
Executing the example requires an express report with the EXPRESS_REPORT identifier.
Sub UserProc;
Var
MB: IMetabase;
Eax1, Eax2: IEaxAnalyzer;
Begin
MB := MetabaseClass.Active;
Eax1 := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
Eax2 := Eax1.ActiveSheet.Analyzer;
Debug.WriteLine(Eax2.ThisSheetPagesCount);
End Sub UserProc;
After executing the example the console window displays the number of pages in the specified express report sheet.
See also: