Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to add the Plain Text exporter to the Report, Ad Hoc, and Scheduler exporters list


    Dhiraj Pahlani
    • Edited on:
    • Features: Exporters Version: v8.0.0 Product: JasperReports® Server

    Requirement:
    To add the Plain Text exporter to the Report, Ad Hoc, and Scheduler exporters list.

    Solution:
    In a 8.0.4 installation,

    Steps needed to enable Plain text exporter to Report:
    Navigate to the WEB-INF/flows/viewReportBeans.xml file.
    Uncomment entry for key txt,“<entry key="txt" value-ref="txtExporterConfiguration"/>” in the exporterConfigMap bean.

    Navigate to the /WEB-INF/applicationContext-remote-services.xml.
    Uncomment entry for txt, <entry key="txt" value-ref="remoteTxtExporter"/> in the remoteExportersMap bean.

    Steps needed to enable Plain text to Ad Hoc:
    Navigate to the /WEB-INF/applicationContext-adhoc.xml.
    Uncomment entry for key txt “<entry key="txt" value="jasper.report.view.hint.export.txt" />” in the exportFormatLabels bean.

    Steps needed to enable Plain text to Scheduler:
    Navigate to the WEB-INF/flows/reportJobBeans.xml.
    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>

    Navigate to the /WEB-INF/applicationContext-report-scheduling.xml.
    Uncomment entry for TXT , <value>TXT</value> in the availableReportJobOutputFormats bean.

    Uncomment entry for txt, <entry key="txt" value-ref="jobTxtExportParameters"/> in the jobExportParametersMap .

    After restarting the JasperReports Server, The “Text only" exporter should be available to the list of exporters for Report and Ad Hoc. In Scheduler we 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...