天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 1904|回复: 11

[已解决] 润乾报表问题

[复制链接]
吉林志达软件 发表于 2013-12-10 11:37:02 | 显示全部楼层 |阅读模式
本帖最后由 echochen 于 2013-12-11 10:47 编辑

您好:润乾报表按照http://www.teemlink.com/bbs/view ... hlight=%C8%F3%C7%AC这个贴子操作的,为什么在客户端查看时什么都看不到啊?麻烦远程看一下;
sophie 发表于 2013-12-10 11:42:46 | 显示全部楼层
您好,首先您得自己排查一下,您现在具体报的错误是什么?可以根据错误信息去检查一下,看哪里的配置有问题。先不要急着一步添加完所有的,添加一步检查一步。
 楼主| 吉林志达软件 发表于 2013-12-10 11:45:31 | 显示全部楼层
按照 这个JSP代码

<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib uri="runqianReport4" prefix="report" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>testJsp</title>
</head>

<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">
  <%
       //String params="_docid="+request.getParameter("_docid");
       //out.println(params);
  %>
  <report:html name="sql" needSaveAsExcel = "yes" needPrint = "yes" srcType="file" reportFileName="kimitestsp801.raq" saveAsName="sql" />
//reportFileName就是对应您设计好的润乾报表名称
</body>
</html>


效果反馈是这样, : 产生数据工厂: com.runqian.report4.dataset.SQLDataSetFactory 失败错误来源:: 数据集ds1中,数据源ccjh无数据库连接,且未设定数据连接工厂,请检查数据源设定:
echochen 发表于 2013-12-10 11:48:06 | 显示全部楼层
您好,请贴出config的配置,reportFileName这里是写的您自己设计的报表名么?
sophie 发表于 2013-12-10 11:48:55 | 显示全部楼层
信息很明确提示,数据库没有连接成功的,您应该贴出reportConfig.xml该文件的配置,且您真的有kimitestsp801.raq 这样一个报表名?
 楼主| 吉林志达软件 发表于 2013-12-10 12:43:26 | 显示全部楼层
reportConfig.xml文件的配置如下:

<jdbc-ds-configs>
                  <jdbc-ds-config>
                        <name>kk</name>
                        <db-type>ds1</db-type>
                        <connection-url>jdbc:sqlserver://localhost:1433/ccobpm</connection-url>
                        <driver-class>com.sqlserver.jdbc.Driver</driver-class>
                        <user-name>sa</user-name>
                        <password>ccjh</password>
                        <db-charset>GBK</db-charset>
                        <client-charset>GBK</client-charset>
                        <extend-properties></extend-properties>
                  </jdbc-ds-config>
            </jdbc-ds-configs>


报表名:jh6.3.raq
kimi 发表于 2013-12-10 12:56:43 | 显示全部楼层
您好:您如果使用的sqlserver的数据库,那您对应的reportConfig.xml文件改为如下:

  1. <jdbc-ds-configs>
  2.        <jdbc-ds-config>
  3.             <name>kimisql</name>
  4.             <db-type>ds1</db-type>
  5.             <connection-url>jdbc:jtds:sqlserver://localhost:1433/kimisp8test</connection-url>
  6.             <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
  7.             <user-name>sa</user-name>
  8.             <password>teemlink</password>
  9.             <db-charset>GBK</db-charset>
  10.             <client-charset>GBK</client-charset>
  11.             <extend-properties></extend-properties>
  12.        </jdbc-ds-config>
  13.     </jdbc-ds-configs>
复制代码
sqlserver的链接驱动要用<driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>这样的格式,如果您对应的报表名jh6.3.raq,那您对应jsp页面的报表名也改为相对于的啊,你不要不改啊。
 楼主| 吉林志达软件 发表于 2013-12-10 13:16:57 | 显示全部楼层
jsp 代码如下:

<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib uri="runqianReport4" prefix="report" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>testJsp</title>
</head>

<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">
  <%
       //String params="_docid="+request.getParameter("_docid");
       //out.println(params);
  %>
  <report:html name="sql" needSaveAsExcel = "yes" needPrint = "yes" srcType="file" reportFileName="jh6.3.raq" saveAsName="sql" />
//reportFileName就是对应您设计好的润乾报表名称
</body>
</html>

reportConfig.xml文件如下:

<jdbc-ds-configs>
                  <jdbc-ds-config>
                        <name>jh6.3</name>
                        <db-type>ds1</db-type>
                        <connection-url>jdbc:sqlserver://localhost:1433/ccobpm</connection-url>
                        <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
                        <user-name>sa</user-name>
                        <password>ccjh</password>
                        <db-charset>GBK</db-charset>
                        <client-charset>GBK</client-charset>
                        <extend-properties></extend-properties>
                  </jdbc-ds-config>
            </jdbc-ds-configs>


改完服务也重启了,
现在还是

: 产生数据工厂: com.runqian.report4.dataset.SQLDataSetFactory 失败错误来源:: 数据集ds1中,数据源ccjh无数据库连接,且未设定数据连接工厂,请检查数据源设定:
sophie 发表于 2013-12-10 13:32:56 | 显示全部楼层
你找我吧。
kimi 发表于 2013-12-10 13:34:01 | 显示全部楼层
不好意思,请问您对应润乾设计器中对应的数据源名称叫jh6.3么?还有您对应的sqlserver数据库连接的是本地的?

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-13 09:01

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表