IEaxAnalyzer.ThisSheetPagesCount

Fore Syntax

ThisSheetPagesCount: Integer;

Fore.NET Syntax

ThisSheetPagesCount: Integer;

Description

The ThisSheetPagesCount property returns the number of pages in the specified express report sheet.

 Fore Example

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 this example the console window displays the number of pages in the specified express report sheet.

 Fore.NET Example

Executing the example requires an express report with the EXPRESS_REPORT identifier.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;
Imports System.Diagnostics;

Public Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Eax1, Eax2: IEaxAnalyzer;
Begin
    MB := Params.Metabase;
    Eax1 := MB.ItemById["EXPRESS_REPORT"].Edit() As EaxAnalyzer;
    Eax2 := Eax1.ActiveSheet.Analyzer;
    Debug.WriteLine(Eax2.ThisSheetPagesCount);
End Sub;

After executing this example the console window displays the number of pages in the specified express report sheet.

See also:

IEaxAnalyzer