潤乾報表的集算報表V5.0整合到WEB專案
阿新 • • 發佈:2019-01-29
最近在使用潤乾報表的集算報表V5.0,在集算報表中設計、開發完報表,需要整合到一個WEB專案中。
現在說一下整合步驟:
1、新建一個WEB專案(或者之前有的專案也可以)
2、拷貝集算報表安裝目錄下demo的所有檔案,如果有重複的就合併。(已有的專案只要合併web.xml就可以)
3、匯入oracle驅動包(ojdbc14.jar)
4、修改reportConfig.xml(通過JDBC直接連線資料庫)
4.1、修改config-license
4.2、修改jdbc-ds-config
5、修改esProcConfig.xml
下面直接上圖我通過JDBC直接連線資料庫的配置方式:
reportConfig.xml的配置資訊:
<!-- 集算報表的許可權證書位置(證書放在專案根目錄下) -->
<config>
<name>license</name>
<value>/raqsoftReportTestinglicense.lic</value>
</config>
<!-- JDBC連線資料庫的配置 -->
<jdbc-ds-configs>
<jdbc-ds-config>
<!-- 資料來源名稱(和集算報表裡的資料來源名稱相同) -->
<name>demo</name>
<!-- 資料庫型別(如:oracle) -->
<db-type>UNKNOWN</db-type>
<url>jdbc:hsqldb:hsql://127.0.0.1/demo</url>
<driver>org.hsqldb.jdbcDriver</driver>
<userName>sa</userName>
<password >123</password>
<dbCharset>GBK</dbCharset>
<clientCharset>GBK</clientCharset>
<useSchema>false</useSchema>
<caseSentence>false</caseSentence>
<needTranContent>false</needTranContent>
<needTranSentence>false</needTranSentence>
</jdbc-ds-config>
</jdbc-ds-configs>
esProcConfig.xml的配置資訊:
<!-- 集算器的許可權證書位置(證書放在專案根目錄下) -->
<Config Version="1">
<licenseFile>/FreeIntergrationLicense.lic</licenseFile>
</config>