Downloading Report Output

Once a report has been generated with the PUT request, it is possible to download its files using a GET request.

Method

URL

GET

http://<host>:<port>/jasperserver[-pro]/rest/report/<UUID>?<arguments> (see example below)

Argument

Type/Value

Description

file?

String

One of the files specified in the report xml. If the file parameter is not specified, the service returns the report descriptor.

Return Value on Success

Typical Return Values on Failure

200 OK – The content is the requested file.

404 Not Found – When the specified UUID is not found in the user’s session.

For example, the URL to download the HTML of the report generated in the previous example is:

http://<host>:<port>/jasperserver[-pro]/rest/report/d7bf6c9-9077-41f7-a2d4-8682e74b637e?file=report

As a side effect of storing the report output in the user session, the UUID in the URL is visible only to the currently logged user. Other applications using different user IDs cannot access this report output.

JasperReports Server does not support exporting Highcharts charts with background images to PDF, ODT, DOCX, or RTF formats. When exporting or downloading reports with Highcharts that have background images to these formats, the background image is removed from the chart. The data in the chart is not affected.

Version: 
Feedback
randomness