tchen_1 Posted July 20, 2018 Share Posted July 20, 2018 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[/code]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! Link to comment Share on other sites More sharing options...
Solution reportdev Posted July 20, 2018 Solution Share Posted July 20, 2018 These export options are available. jasperreports-server-7.1.0apache-tomcatwebappsjasperserver-proWEB-INFflowsviewReportBeans.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"/>[/code] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now