快逸报表整合至MyEclipse项目中

一.配置数据源

1.1打开设计器后,依次选择配置->数据源->新建->关系数据库->填写相关属性(数据源名称要记住)->确定

->选中刚建立的数据源,点击连接,变为粉红色为连接成功


1.2新建报表

依次选择文件->新建报表->(默认即可),下一步->选择要操作的数据表->下一步->生成网格报表即可

1.3发布,查看

四个图标分别对应启动服务、?、发布、浏览


二、MyEclipse项目中集成

2.1导入相关jar包以及mysql驱动

2.2在WebRoot目录下新建文件夹report,在report文件夹下新建images、reportFiles、reportJsp文件夹

在WEB-INF目录下新建report文件夹,用于存放相关文件


2.3将\quieeReport\webapps\quiee\WEB-INF 目录下的 reportConfig.xml,runqianReport4.tld,runqianReportLog.properties 

文件复制到WEB-INF目录下新建report文件夹中

  将\quieeReport\webapps\quiee 目录下的 j2re-1_4_1-windows-i586-i.exe,runqianReport4Applet.jar复制到WebRoot目录下

  将images 中的资源复制到images文件夹下

  将myError.jsp、myInputError.jsp、showReport.jsp、toolbar.jsp文件复制到reportJsp文件夹中

2.4修改相关资源文件:

2.4.1修改web.xml文件,添加如下内容:

<!-- 配置快逸导出报表文件的Servlet --> 
<servlet> 
  <servlet-name>reportServlet</servlet-name> 
  <servlet-class> 
  com.runqian.util.webutil.SetContextServlet 
  </servlet-class> 
  <init-param>
  <param-name>configFile</param-name> 
  <param-value>/WEB-INF/report/reportConfig.xml</param-value> 
  </init-param> 
  <load-on-startup>1</load-on-startup> 
</servlet> 

<servlet-mapping> 
  <servlet-name>reportServlet</servlet-name> 
  <url-pattern>/reportServlet</url-pattern> 
</servlet-mapping> 
  
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/runqianReport4.tld</taglib-uri>
<taglib-location>/WEB-INF/runqianReport4.tld</taglib-location>
</taglib>
</jsp-config>


2.4.2修改reportConfig.cml文件内容

<?xml version="1.0" encoding="UTF-8" ?>
<reportConfig>
<config>
<name>logConfig</name>
<value>/WEB-INF/report/runqianReportLog.properties</value>
</config>
<config>
<name>license</name>
<value>d:/s-rpt.lic</value>
</config>
<config>
<name>reportFileHome</name>
<value>/report/reportFiles</value>
</config>
<config>
<name>semanticsFile</name>
<value>/WEB-INF/report/runqianSemanticFile.xml</value>
</config>
<config>
<name>JNDIPrefix</name>
<value>java:comp/env</value>
</config>
<config>
<name>dataSource</name>
<value>user,mysql,gbk;</value>
</config>
<config>
<name>jspCharset</name>
<value>GBK</value>
</config>
<config>
<name>alwaysReloadDefine</name>
<value>yes</value>
</config>
<config>
<name>cachedParamsTimeout</name>
<value>120</value>
</config>
<config>
<name>cachedReportDir</name>
<value>E:\work\report\cached</value>
</config>
<config>
<name>cachedIdPrefix</name>
<value>A</value>
</config>
<config>
<name>cachedReportTimeout</name>
<value>120</value>
</config>
<config>
<name>maxCellNum</name>
<value></value>
</config>
<config>
<name>maxConcurrentForReport</name>
<value>9999</value>
</config>
<config>
<name>maxWaitForReport</name>
<value>9999</value>
</config>
<config>
<name>maxWaitTimeForReport</name>
<value>9999</value>
</config>
<config>
<name>appUrlPrefix</name>
<value></value>
</config>
<config>
<name>errorPage</name>
<value>/report/reportJsp/myError.jsp</value>
</config>

<jdbc-ds-configs>
<jdbc-ds-config>
<name>user</name>
<db-type>9</db-type>
<connection-url>jdbc:MySQL://localhost:3306/user</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>root</password>
<db-charset>GBK</db-charset>
<client-charset>GBK</client-charset>
<extend-properties />
</jdbc-ds-config>
</jdbc-ds-configs>
</reportConfig>

2.5添加第一步中生成的文件到reportFiles文件夹中

demo.raq

2.6运行程序,在浏览器中输入:http://localhost:8080/Report/report/reportJsp/showReport.jsp?raq=demo.raq 即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值