JasperReports output parameter of url

0

We can retrieve reports from JasperReports Server by calling a url like:

http://<host>:<port>/<context>/flow.html?_flowid=viewReportFlow&reportUnit=/public/Samples/Reports/SalesByMonthReport&startMonth=7&output=pdf

My question is what are all the possible values the output parameter can take?

This link (https://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v710/repository-http-api) says:

output (optional) – specifies the output format. Values for this parameter are keys for the report exporters configured in the server. By default, the server recognizes the following output types: pdf for PDF, xls for Excel (Paginated), xlsNoPag for Excel, xlsx for XLSX (Paginated), xlsxNoPag for XLSX, rtf for RTF, csv for CSV and swf for the Flash report viewer. When this parameter is not specified, the default format is HTML displayed in the report viewer.

But I tried output=docx and it also worked.

I'm using version 7.1.0 of the community edition of JasperReports Server.

Can anyone provide a list of all the possible values for the output parameter?

Thanks!

tchen_1's picture
17
Joined: May 18 2018 - 9:24am
Last seen: 1 year 4 months ago

1 Answer:

1

These export options are available. 

jasperreports-server-7.1.0\apache-tomcat\webapps\jasperserver-pro\WEB-INF\flows\viewReportBeans.xml

<entry key="pdf" value-ref="pdfExporterConfiguration"/>
        <entry key="xls" value-ref="xlsExporterConfiguration"/>
        <entry key="xlsNoPag" value-ref="xlsNoPaginationExporterConfiguration"/>
        <entry key="csv" value-ref="csvExporterConfiguration"/>
        <entry key="docx" value-ref="docxExporterConfiguration"/>
        <entry key="rtf" value-ref="rtfExporterConfiguration"/>
        <entry key="odt" value-ref="odtExporterConfiguration"/>
        <entry key="ods" value-ref="odsExporterConfiguration"/>
        <entry key="xlsx" value-ref="xlsxExporterConfiguration"/>
        <entry key="xlsxNoPag" value-ref="xlsxNoPaginationExporterConfiguration"/>
        <entry key="pptx" value-ref="pptxExporterConfiguration"/>
reportdev's picture
1222
Joined: Oct 12 2015 - 12:05pm
Last seen: 2 weeks 3 days ago
Feedback