Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to enable a Plain Text exporter for Report, AdHoc View and Scheduler exporters list


    jpadre
    • Features: Ad Hoc, Reports Version: v8, v8.0, v8.0.0, v8.0.1, v8.0.2, v8.0.3, v8.0.4, v8.1, v8.1.0, v8.1.1, v8.2, v8.2.0, v7, v7.9, v7.9.1, v7.9.0 Product: JasperReports® Server

    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.


    User Feedback

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...