PEGetNPages

Use PEGetNPages to retrieve the number of pages in the report. This information can be used to allow the user to display a specific page in a preview window using PEShowNthPage (PEShow...Page), for example.

C Syntax
short CRPE_API PEGetNPages (
        short printJob );
Parameter

printJob

Specifies the print job for which you want to determine the number of pages.

Returns
VB Syntax

VB Sample Code for Previewing a Report

Declare Function PEGetNPages Lib "crpe32.dll" (ByVal printJob As 
Integer) As Integer
Delphi Syntax
function PEGetNPages (
    printJob: Word
    ): Smallint stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com