on 03-28-2016 8:44 PM
Hi,
I'm having a hard time getting a PDF to export properly. I can get the report to export, but the report header and footer are missing.
In a nutshell, here's what I'm doing:
* GET request to http://server:6405/biprws/raylight/v1/document/1234/parameters/?lovInfo=false to get the list of parameters my report needs
* PUT request to http://server:6405/biprws/raylight/v1/document/1234/parameters, with the following XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<parameters>
<parameter optional="false" type="prompt" dpId="DP0">
<id>0</id>
<technicalName>Please Enter Date</technicalName>
<name>Please Enter Date</name>
<answer constrained="true" type="Text">
<info cardinality="Single" keepLastValues="true">
<lov hierarchical="false" refreshable="true">
<id>UNIVERSELOV_DS0.DO2e</id>
</lov>
<previous>
<value id="0">02/28/2016</value>
</previous>
</info>
<values>
<value id="0">02/28/2016</value>
</values>
</answer>
</parameter>
<parameter optional="false" type="prompt" dpId="DP0">
<id>1</id>
<technicalName>Please Enter Agency Identifier:</technicalName>
<name>Please Enter Agency Identifier:</name>
<answer constrained="false" type="Text">
<info cardinality="Single" keepLastValues="true">
<lov hierarchical="false" refreshable="true">
<id>UNIVERSELOV_DS0.DO21</id>
</lov>
<previous>
<value>100049</value>
</previous>
</info>
<values>
<value>100052</value>
</values>
</answer>
</parameter>
</parameters>
* GET request to http://server:6405/biprws/raylight/v1/document/1234, with Accept header set to "application/pdf"
While I do get my PDF, I'm only getting the main body, not the page header/footer.
Any suggestions?
Hi Eric,
Your export is done in listing mode, which is the continuous body of the report only. To export a paginated report with headers and footers, add "/pages" to the export.
http://server:6405/biprws/raylight/v1/document/1234/pages
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.