Jump to content
Changes to the Jaspersoft community edition download ×
  • Installing the PPTX Exporter for JasperReports Server v4.2.1


    mgeise
    • Version: v4.2.1 Product: JasperReports® Server

    Overview

    This document describes how to install the Report PPTX exporter in your local JasperReports Server v4.2.1 installation. There are 5 configuration files to be modified and 5 jar files. Note: If you run other than version v4.2.1 of JasperReports Server or modified the jars already, you can use the source code to implement PPTX exporter.

    Configuration Files

    WEB_INFbundlesjasperserver_messages.properties

    • Add Menu item labels around line #434:

      report.output.pptx.label=PPTX
      
    • Add Menu item labels around line #1566:

      jasper.report.view.hint.export.pptx=As PPTX
      

    For other languages check localization bundles.

    WEB-INFflowsreportJobBeans.xml

    • Add PPTX output type for job scheduler parameters around line #141:

      <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_PPTX"/>
          </property>
          <property name="labelMessage">
              <value>report.output.pptx.label</value>
          </property>
      </bean>
      

    WEB-INFflowsViewReportBeans.xml

    • Add PPTX Exporter Bean and output parameters around line #182:

      <bean id="reportPptxExporter"
            class="com.jaspersoft.jasperserver.war.action.ReportPptxExporter"
            parent="baseReportExporter">
          <property name="setResponseContentLength" value="true"/>
      </bean>
      
    • Add PPTX Exporter Configuration bean around line #279:

      <bean id="pptxExporterConfiguration"
            class="com.jaspersoft.jasperserver.war.action.ExporterConfigurationBean">
          <property name="descriptionKey" value="jasper.report.view.hint.export.pptx"/>
          <property name="iconSrc" value="/images/pptx.png"/>
          <property name="parameterDialogName" value=""/>
          <property name="exportParameters"> <null/> </property>
          <property name="currentExporter" ref="reportPptxExporter"/>
      </bean>
      
    • Add an entry key around line #313:

      <entry key="pptx" value-ref="pptxExporterConfiguration"/>
      

    WEB-INFapplicationContext.xml

    • Add PPTX Exporter Parameters bean around line #1108:

      <bean id="pptxExportParameters"
            class="com.jaspersoft.jasperserver.api.engine.jasperreports.common.PptxExportParametersBean" >
      </bean>
      

    WEB-INFapplicationContext-report-scheduling.xml

    • Add PPTX Exporter Parameters bean around line #355:

      <bean id="jobPptxExportParameters" parent="pptxExportParameters" />
      
    • Add value reference inside <util:map id="jobExportParametersMap"> around line #364:

      <entry key="pptx" value-ref="jobPptxExportParameters"/>
      
    • Add value reference inside <util:map id="outputKeyMapping"> around line #380:

      <entry key="11" value="pptx"/>
      
    • Add output format around line #406:

      <bean id="pptxOutput" class="com.jaspersoft.jasperserver.api.engine.scheduling.quartz.PptxReportOutput"/>
      
    • Add output format inside <util:map id="outputFormatMap"> around line #409:

      <entry key="pptx" value-ref="pptxOutput"/>
      

    Save all the files with new configuration strings and deploy on the Application Server.

    Java Runtime Binaries

    Deploy 5 Jars to WEB_INF/lib/ folder - only compatible with version 4.2.1:

    • jasperserver-api-engine-4.2.0.jar
    • jasperserver-api-engine-impl-4.2.0.jar
    • jasperserver-api-metadata-4.2.0.jar
    • jasperserver-common-ws-4.2.0.jar
    • jasperserver-war-jar-4.2.0.jar

    Once you have made the appropriate changes and put everything in place, restart JasperReports Server.

     


    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...