Running, printing, and viewing a document : Retrieving and viewing data : Requesting a page or range of pages using SelectPage : Using SelectPage to print
 
Using SelectPage to print
SelectPage supports printing one or more pages of a report document. In the following example, the ViewOperation element of ViewParameter specifies printing. SplitOversizePages indicates whether to split a report page across multiple PDF pages. If you set SplitOversizePages to False, each report page prints as a single page. PageWidth and PageHeight indicate the size of the paper.
<SOAP-ENV:Body>
<SelectPage>
<Object>
<Id>89</Id>
</Object>
<ViewParameter>
<Format>PDF</Format>
<UserAgent>
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
</UserAgent>
<AcceptEncoding>gzip, deflate</AcceptEncoding>
<ViewOperation>print</ViewOperation>
<SplitOversizePages>true</SplitOversizePages>
<PageWidth>6</PageWidth>
<PageHeight>6</PageHeight>
<EmbeddedObjPath>ViewEmbeddedObject?
serverURL=http%3a%2f%2flocalhost%3a4000&amp;
volume=end00166&amp;
connectionHandle=g5WwgEamp;operation=</EmbeddedObjPath>
<RedirectPath>../servlet/GenericRedirector</RedirectPath>
</ViewParameter>
<Page>
<Range>1-5</Range>
</Page>
</SelectPage>
</SOAP-ENV:Body>