PageCount(SectionIndex: Integer): Integer;
SectionIndex. Section index.
The PageCount property returns the number of section pages that can be printed.
A section is divided into pages in accordance with parameters specified for the section.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier.
Sub Main;
Var
MB: IMetabase;
Eax: IEaxAnalyzer;
GxDoc: IGxDocument;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;
GxDoc := Eax As IGxDocument;
Debug.WriteLine(GxDoc.PageCount(0));
End Sub Main;
After executing the example the development environment console displays the number of pages of the express report first section that can be printed.
See also: