本帖最后由 jack 于 2015-4-9 11:38 编辑
润乾报表发布完提示 “//reportFileName就是对应您设计好的润乾报表名称 ”
我也是按照http://www.teemlink.com/bbs/view ... ight=reportFileName 这个贴子弄的,
新建的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="yinuo.raq" saveAsName="sql" />
//reportFileName就是对应您设计好的润乾报表名称
</body>
</html>
yinuo.raq 为报表名称:
reportConfig配置如下:
<jdbc-ds-configs>
<jdbc-ds-config>
<name>一诺眼科</name>
<db-type>yinuo</db-type>
<connection-url>jdbc:jtds:sqlserver://localhost:3307/yinuo</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password></password>
<db-charset>GBK</db-charset>
<client-charset>GBK</client-charset>
<extend-properties></extend-properties>
</jdbc-ds-config>
</jdbc-ds-configs> |