Please or Register to create posts and topics.

Restrict Export Formats to pdf, xlsx (8.2.0)

Hi all,

my customer wants to restrict the available output/export formats in Jasperreports Server to PDF and XLSX.

The restrictions should apply in the report viewer as well as in the scheduling area.

Customer installation is based on Jasperreport Server 8.2.0 on JBoss EAP 7.2

Please help.

Greetings,

For the report viewer / ad hoc executions:

  1. In your Jasper Server installation go to webapps\jasperserver\WEB-INF\flows
  2. Open viewReportBeans.xml
  3. Navigate to < util:map id="exporterConfigMap">
  4. Below that you'll see all the possible export formats, delete or comment out any you wish to remove.

For the scheduling view:

  1. In your Jasper Server installation go to webapps\jasperserver\WEB-INF
  2. Open applicationContext-report-scheduling.xml
  3. Navigate to <util:list id="availableReportJobOutputFormats" value-type="java.lang.String">
  4. Below that you'll see all the possible export formats, delete or comment out any you wish to remove.
  5. (still in the same file) Navigate to < util:map id="outputFormatMap">
  6. Below that, remove or comment out the same formats you did in the earlier step

If you have any questions, feel free to ask c: