Running, printing, and viewing a document : Retrieving and viewing data : Requesting a page or range of pages using SelectPage
 
Requesting a page or range of pages using SelectPage
Use SelectPage to view a page or range of pages. You must specify an object, a view format, and a page number or page range. Use PageNum to specify a single page or a range of pages. The response returns the requested page or pages as a binary attachment.
The following example shows how to request pages 1 through 6 and page 8. In this request, ViewParameter sets the following conditions:
*The requested display format is DHTML.
*UserAgent is a tool to increase user accessibility to the data.
*AcceptEncoding restricts the content encoding of the response.
*ScalingFactor is set to 100 percent.
<SOAP-ENV:Body>
<SelectPage>
<Object>
<Id>1071</Id>
</Object>
<ViewParameter>
<Format>DHTML</Format>
<UserAgent>Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.0)
</UserAgent>
<AcceptEncoding>gzip, deflate</AcceptEncoding>
<ScalingFactor>100</ScalingFactor>
</ViewParameter>
<Page>
<PageNum>1-6, 8</PageNum>
</Page>
</SelectPage>
</SOAP-ENV:Body>
To view the first or the last page of the report, use ViewMode as an element of Page, instead of PageNum. Set ViewMode to 0 to view the first page or 1 to view the last page.
<Page>
<ViewMode>0</ViewMode>
</Page>