This article describes how to add a Plain Text exporter to the Report, AdHoc, and Scheduler exporters list for JasperReports Server 7.9+. For earlier versions of JasperReports Server, refer to this article.
Steps to enable Plain text exporter to Report:
1. Navigate to the WEB-INF/flows/viewReportBeans.xml file.
2. Uncomment entry for key txt,“<entry key="txt" value-ref="txtExporterConfiguration"/>” in the exporterConfigMap bean.
3. Navigate to the /WEB-INF/applicationContext-remote-services.xml.
4. Uncomment entry for txt, <entry key="txt" value-ref="remoteTxtExporter"/> in the remoteExportersMap bean.
Steps to enable Plain text exporter to AdHoc:
1. Navigate to the /WEB-INF/applicationContext-adhoc.xml.
2. Uncomment entry for key txt “<entry key="txt" value="jasper.report.view.hint.export.txt" />” in the exportFormatLabels bean.
Steps to enable Plain text to Scheduler:
1. Navigate to the WEB-INF/flows/reportJobBeans.xml.
2. Uncomment the following bean:
<bean class="com.jaspersoft.jasperserver.war.dto.ByteEnum">
<property name="code">
<util:constant static-field="com.jaspersoft.jasperserver.api.engine.scheduling.domain.ReportJob.OUTPUT_FORMAT_TXT"/>
</property>
<property name="labelMessage">
<value>report.output.txt.label</value>
</property>
</bean>
3. Navigate to the /WEB-INF/applicationContext-report-scheduling.xml.
4. Uncomment entry for TXT , <value>TXT</value> in the availableReportJobOutputFormats bean.
5. Uncomment entry for txt, <entry key="txt" value-ref="jobTxtExportParameters"/> in the jobExportParametersMap.
After restarting the JRS server, “Text only" exporter will be available to the list of exporters for Report and AdHoc. In Scheduler, you will able to see Plain Text(.txt) option in the list of formats.
Recommended Comments
There are no comments to display.
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