Exports the report in one of the following formats:
GET <webiURL>/documents/{documentId}/reports/{reportId}?[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, except XML and CSV |
chartOutputFormat |
Output format for generated chart. Values are: jpeg, bmp, gif, and png (default). |
HTML, ZIP, and MHTML |
imageUrl | String used to customize image links when they cannot be reached from the information system. | HTML |
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 |
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 |
optimized |
Boolean. Default is false. If true, the generated output is optimized for calculations inside Microsoft Excel. |
Microsoft Excel 2003 and Microsoft Excel 2007 |
textQualifier |
Character used to surround each column value. Values are' or ". |
CSV |
columnDelimiter |
String that defines a character put between columns. Values are comma (,), semi-colon (;) or the special string Tab. |
CSV |
charset |
String that defines a valid server charset retrieved from the list of charsets. |
CSV |
You may need to customize the source of an image in a report exported as HTML if the image is unreachable by your system:
<img border="0" style="position:absolute;top:0px;left:0px;width:400px;height:300px;" alt="3D Column Chart" src="http://dewdfwadept1054.dhcp.wdf.sap.corp:6405/biprws/ raylight/v1/documents/6406/reports/1/images/dxXMLDraft.drilloff_1*2*6? X-SAP-LogonToken={X-SAP-LogonToken}"> </img>
To do this, use the imageUrl parameter with an appropriate value in the GET call:
GET <webiURL>/documents/6406/reports/1?reference=1.D.7&imageUrl=http%3A%2F%2FmyServer%2FmyPage.jsp
The resulting image link looks like:
<img border="0" style="position:absolute;top:0px;left:0px;width:400px;height:300px;" alt="3D Column Chart" src="http://myServer/myPage.jsp?documentId=6406&reportId= 1&imageId=dxXMLDraft.drilloff_1*2*6&X-SAP-LogonToken={X-SAP-LogonToken}"> </img>
Response body: the exported report in the specified format.
curl -G -s -H "accept:text/html" -H X-SAP-LogonToken:"""%tokenValue%""" "<webiURL>/documents/9512/reports/67?chartOutputFormat=jpeg" > exportedreport.htm