Running, printing, and viewing a document : Retrieving and viewing data : Requesting a page count
 
Requesting a page count
Use GetPageCount to request a page count for a report. In the request, provide the path to the BIRT document (.rptdocument) file for which you want the count.
<SOAP-ENV:Body>
<GetPageCount>
<Object>
<Name>/Temp/Inventory.rptdocument</Name>
</Object>
</GetPageCount>
</SOAP-ENV:Body>
This request returns the page count, an indicator of whether the report is complete, and a ConnectionHandle in the SOAP header that BIRT iHub uses for subsequent requests for the same report.
<SOAP-ENV:Header>
<AuthId>G4RhQBq0jidFqdi+o+K</AuthId>
<ConnectionHandle>u7wBuIMEv18lQxjMqWBDBI6/B
</ConnectionHandle>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<GetPageCountResponse>
<PageCount>6</PageCount>
<IsReportCompleted>true</IsReportCompleted>
</GetPageCountResponse>
</SOAP-ENV:Body>