IGxDocument.PageCount

Syntax

PageCount(SectionIndex: Integer): Integer;

Parameters

SectionIndex. Section index.

Description

The PageCount property returns the number of section pages that can be printed.

Comments

A section is divided into pages in accordance with parameters specified for the section.

Example

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:

IGxDocument