cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting a Webi report as PDF

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

daniel_paulsen
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Dan,

You just saved my life!

Answers (0)