Restrict Export Formats to pdf, xlsx (8.2.0)
Quote from jasperman on 18. June 2024, 17:11Hi 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.
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.
Quote from Gustaf Folger on 19. June 2024, 15:59Greetings,
For the report viewer / ad hoc executions:
- In your Jasper Server installation go to webapps\jasperserver\WEB-INF\flows
- Open viewReportBeans.xml
- Navigate to < util:map id="exporterConfigMap">
- Below that you'll see all the possible export formats, delete or comment out any you wish to remove.
For the scheduling view:
- In your Jasper Server installation go to webapps\jasperserver\WEB-INF
- Open applicationContext-report-scheduling.xml
- Navigate to <util:list id="availableReportJobOutputFormats" value-type="java.lang.String">
- Below that you'll see all the possible export formats, delete or comment out any you wish to remove.
- (still in the same file) Navigate to < util:map id="outputFormatMap">
- 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:
Greetings,
For the report viewer / ad hoc executions:
- In your Jasper Server installation go to webapps\jasperserver\WEB-INF\flows
- Open viewReportBeans.xml
- Navigate to < util:map id="exporterConfigMap">
- Below that you'll see all the possible export formats, delete or comment out any you wish to remove.
For the scheduling view:
- In your Jasper Server installation go to webapps\jasperserver\WEB-INF
- Open applicationContext-report-scheduling.xml
- Navigate to <util:list id="availableReportJobOutputFormats" value-type="java.lang.String">
- Below that you'll see all the possible export formats, delete or comment out any you wish to remove.
- (still in the same file) Navigate to < util:map id="outputFormatMap">
- 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: