NTPExportGetLastPage ( <ReportHandle> ) -> <PagesCount>
Description
Calculates the number of pages in a report. It is a prerequisite, that the report was created for the preview (see NTPProcessReport...) and the option NTPOPTION_KEEPREPORT. This option ensures, that the report is not immediately deleted once created (and viewed). This function is needed to set the maximum value <PageNr> for NTPExportReport.
Declaration for Lotus Script
Declare Function NTPExportGetLastPage Lib "NTP.DLL" ( ByVal ReportHandle As Long ) As Long
Parameter
<ReportHandle> (LONG)
Report handle, returned by calling NTPInit or NTPInitFromDatabase.
Return value
<PagesCount> (LONG)
A negative return value shows an error, a positive value the number of pages.