JasperServerとの統合
Contents
 [
      
        Hide
      ]
    
JasperServerにAspose.Cells for JasperReportsを統合するには、以下の手順を実行してください。
In all of the following steps  stands for the JasperServer installation directory.
 
- Add the following new exporter properties to the \apache-tomcat\webapps\jasperserver\WEB-INF\flows\viewReportBeans.xml file.
XML
 <bean id="reportACXlsExporter" class="com.aspose.cells.jasperreports.ACReportXlsExporter" parent="baseReportExporter">
   <property name="exportParameters" ref="excelACExportParameters"/>
   <property name="setResponseContentLength" value="true"/>
</bean>
<bean id="xlsACExporterConfiguration" class="com.jaspersoft.jasperserver.war.action.ExporterConfigurationBean">
   <property name="descriptionKey" value="XLS - Excel Presentation via Aspose.Cells"/>
   <property name="iconSrc" value="/images/xls.gif"/>
   <property name="parameterDialogName" value="excelACExportParams"/>
   <property name="exportParameters" ref="excelACExportParameters"/>
   <property name="currentExporter" ref="reportACXlsExporter"/>
</bean>
- Locate the <util:map id=”exporterConfigMap> element in the \apache-tomcat\webapps\jasperserver\WEB-INF\flows\viewReportBeans.xml file and add the following lines:
XML
 <util:map id="exporterConfigMap">
   <entry key="pdf" value-ref="pdfExporterConfiguration"/>
   <entry key="xls" value-ref="xlsExporterConfiguration"/>
   <entry key="rtf" value-ref="rtfExporterConfiguration"/>
   <entry key="csv" value-ref="csvExporterConfiguration"/>
   <entry key="swf" value-ref="swfExporterConfiguration"/>
<!-- START of ADDED LINES -->
   <entry key="xls" value-ref="xlsACExporterConfiguration"/>
<!-- END of NEW LINES -->
</util:map>
- Copy all GIF images from the \lib folder in the aspose.cells.jasperreports.zip to the \apache-tomcat\webapps\jasperserver\images folder.
- Copy the aspose.cells.jasperreports.jar file from the \lib folder in the aspose.cells.jasperreports.zip to the \apache-tomcat\webapps\jasperserver\WEB-INF\lib. folder.
- Add the following lines to the \apache-tomcat\webapps\jasperserver\WEB-INF\applicationContext.xml file. (このビーンには、エクスポートを構成するためのさまざまな設定が含まれている場合があります。たとえば、JasperReportsフォントマッピング機能を使用するか、Aspose.Cells for JasperReportsのライセンスファイルの場所を指定することができます。)
XML
 <bean id="excelACExportParameters" class="com.aspose.cells.jasperreports.ACXlsExportParametersBean"> <!-- Uncomment to apply a license. Check the license path.
<property name="licenseFile" value="C:/jasperserver-3.0/apache-tomcat/webapps/jasperserver/WEB-INF/Aspose.Cells.JasperReports.lic"/>
-->
</bean>
- JasperServerを実行して表示する任意のレポートを開きます。前の手順が適切に実行された場合、追加の形式アイコンが利用可能になります。
JasperServerにAspose.Cells for JasperReportsをインストールした後に利用可能な新しいエクスポート形式(右側に表示)
