Exports the whole Web Intelligence document to the desired format:
GET /documents/<documentID>?<optional_parameters>
Parameter | Description | Supported Formats |
---|---|---|
dpi |
Resolution in dots per inch (dpi) for generated charts. Value between 75 and 9600. Default is 300 for PDF format, 96 for all other formats. |
All |
unit |
A string that defines the unit that sizes will be reported in. Values are "metric", "millimeter", "point", and "pixel" (default). |
XML |
rawValues | Boolean. Default is false. If true, the raw values and their types are exported with the formatted values. | XML |
fileName |
A string that defines the name of the ZIP file. If set, the HTML output is zipped to a fileName.zip file. Maximum string length is 96. |
ZIP |
optimized |
Boolean. Default is false. If true, the generated output is optimized for calculations inside Microsoft Excel. |
Microsoft Excel 2003 and Microsoft Excel 2007 |
Response type:
The response is the file whose name is the document identifier with the output extension type.
Exports the XML result in the xmlfile.xml, with a resolution of 150 dpi for any generated charts.
curl -G -s -H "accept:text/xml" -H X-SAP-LogonToken:"""%tokenValue%""" "<base_webi_REST_URL>/documents/8022?dpi=150&size=pixel" > xmlfile.xml
Exports the result with the file name exportpdf.pdf. The default resolution of 300 dpi for any generated charts is used.
curl -G -s -H "accept:application/pdf" -H X-SAP-LogonToken:"""%tokenValue%""" <base_webi_REST_URL>/documents/8022" > exportpdf.pdf
Exports the result with the file name excel2003.xls file. The output is optimized for calculations inside Microsoft Excel, and any generated charts will have a resolution of 150 dpi.
curl -G -s -H "accept:application/vnd.ms-excel" -H X-SAP-LogonToken:"""%tokenValue%""" <base_webi_REST_URL>/documents/8022?optimized=true&dpi=150" > excel2003.xls
Exports the result in the excel2007.xls file. The output is optimized for calculations inside Microsoft Excel.
curl -G -s -H "accept:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" -H X-SAP-LogonToken:"""%tokenValue%""" <base_webi_REST_URL>/documents/8022?optimized=true" > excel2007.xls