PagesCount: Integer;
The PagesCount property returns the number of report pages that will be printed using the current page parameters.
Sub Main;
Var
MB: IMetabase;
Expr: IEaxAnalyzer;
i: Integer;
Begin
MB:=MetabaseClass.Active;
Expr:=MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;
i:=Expr.PagesCount;
End Sub Main;
After executing the example the variable contains the number of pages, on which the express report was printed. Express report identifier - EXPRESS_REPORT.
See also: