Skip to content

Commit 18b8ef3

Browse files
author
TanyaEf
committed
Updated ReadMe.md (Reports service section)
1 parent b67a64b commit 18b8ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ ReportExecutionRequest request = new ReportExecutionRequest();
225225
request.setReportUnitUri("/reports/samples/StandardChartsReport");
226226
request
227227
.setAsync(true) //this means that report will be run on server asynchronously
228-
.setOutputFormat("html"); //report can be requested in different formats e.g. html, pdf, etc.
228+
.setOutputFormat(ReportOutputFormat.HTML);; //report can be requested in different formats e.g. html, pdf, etc.
229229

230230
OperationResult<ReportExecutionDescriptor> operationResult =
231231
session //pay attention to this, all requests are in the same session!!!
@@ -293,7 +293,7 @@ for(AttachmentDescriptor attDescriptor : htmlExportDescriptor.getAttachments()){
293293
After running a report and downloading its content in a given format, you can request the same report in other formats. As with exporting report formats through the user interface, the report does not run again because the export process is independent of the report.
294294
```java
295295
ExportExecutionOptions exportExecutionOptions = new ExportExecutionOptions()
296-
.setOutputFormat("pdf")
296+
.setOutputFormat(ReportOutputFormat.PDF)
297297
.setPages("3");
298298

299299
OperationResult<ExportExecutionDescriptor> operationResult =

0 commit comments

Comments
 (0)