Jump to content
Changes to the Jaspersoft community edition download ×

JasperReports output parameter of url


tchen_1
Go to solution Solved by reportdev,

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...