Prints a report to the (network) printer entered in the export profile used. The export profiles available for printing can be retrieved as described in Retrieve printer profiles.
URL
POST /api/v1/report/{TemplateID}/print/{ExportProfileID}
Optional parameters
Parameter can be passed in URL as ?param=value or form-encoded in the request body.
Name |
Values |
Default |
Function |
format |
json/ xml |
xml |
Sets the format with which the ExportResult object will be serialized if the result type "pagelinks" is shown. |
$parameter |
String(s) |
- |
Used to transfer report parameters, corresponds to the parameter of the same name under Retrieving report. |
Result
The request runs until the report has been printed (code 200) or an error has occurred.
Error codes (in addition to general error codes)
Status code |
Status text |
Explanation |
500 |
- |
Error during export. There is a localized error message in the request body. |
404 |
ERR_INVALID_TEMPLATE |
Report template not found.
|
404 |
ERR_INVALID_EXPORTPROFILE |
Export profile not found.
|
403 |
ERR_ACCESS_DENIED |
No access rights to report template / data source. |
417 |
ERR_INVALID_EXPORTPROFILE |
Export profile was found, but is invalid for printing. |
Return type
No return except for errors.