打印报表版本1.0
2009-07-20 11:07
28 查看
<h:commandButton id="printBtn" value="打印准迁证" accesskey="p" style="width: 90px" tabindex="200" onclick="return print()" />
function print() { var slh = document.getElementById("slbh_4_form").innerText; alert(slh); window.open("/gdrk/cn/hnisi/gdrk/hjsp/swqr/SwqrZqzPrintPane.jsp?slh="+slh, "", "width=700,height=500,top=100,left=100,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,status=no"); return false; }
<%@ page contentType="text/html;charset=GBK"%> <%@ taglib uri="/WEB-INF/runqianReport4.tld" prefix="report"%> <%@ page language="java"%> <html> <title>准予迁入证明</title> <body onmouseover="self.status='准予迁入证明';return true" topMargin=0 rightMargin=0 bottomMargin=0> <% String reportName = "zqzTest2" + ".raq"; String b = "SLH=" + request.getParameter("slh"); System.out.println("======================"+b); %> <div align="center" style="border: 0 solid #91A7B4; overflow-x: auto; overflow-y: auto; height: 100%; width: 100%"> <table width="100%" height="800"> <tr> <td valign="top" align="center"> <report:html name="report1" reportFileName="<%=reportName%>" params="<%=b%>" funcBarLocation="boTh" needPageMark="yes" functionBarColor="#fff5ee" funcBarFontSize="10pt" funcBarFontColor="blue" separator=" " needSaveAsExcel="yes" needSaveAsPdf="yes" needPrint="yes" pageMarkLabel="页号{currpage}/{totalPage}" printLabel="打印" displayNoLinkPageMark="yes" saveAsName="准予迁入证明" /> </td> </tr> </table> </div> </body> </html>
在润乾报表里建立两个数据集,一个参数SLH
ds1:
SELECT t1.SLH, t1.ZQYY, t1.BZ, t1.CBR, t1.DZ, t1.FWDW, t1.GMSFHM, t1.HKDJJG, t1.PZJG, t1.QCDXZ, t1.SQRXM FROM V_HJSP_PRINT_QRSP_ZQZ t1 WHERE ( t1.SLH = ?)
ds2:
SELECT t.YZQRGXMC, t.XM, t.XB, t.CSRQ, t.SLH,t.ZJHM , rownum rid FROM V_HJSP_QRRYXX t WHERE (t.SLH =? and rownum < 5)
相关文章推荐
- 报表源代码 winform c# -基于DexExpressXtraReport的打印报表,后台生成报表,winform版本,采用C#语言封装,比金质通更强大,现在开放源代码 .
- 报表源代码 winform c# -基于DexExpressXtraReport的打印报表,后台生成报表,winform版本,采用C#语言封装,比金质通更强大,现在开放源代码 .
- 打印报表版本2.0
- 报表源代码 winform c# -基于DexExpressXtraReport的打印报表,后台生成报表,winform版本,采用C#语言封装,比金质通更强大,现在开放源代码
- 报表源代码 winform c# -基于DexExpressXtraReport的打印报表,后台生成报表,winform版本,采用C#语言封装,比金质通更强大,现在开放源代码 .
- .NET/C# 各版本变化及衍生知识点 C# 1.0/2.0
- Shell脚本一键启动/关闭 zookeeper集群(版本1.0)
- Web项目中使用RDLC报表可以打印吗?
- 网上找来的RDLC报表打印实例,比较全面的实例,包括双面打印,XML操作等
- Android Permission大全1.0最终版本
- USCOJ 1063: 外星人的密码数字(1.0版本)
- 热心的网友帮忙解决水晶报表打印纸张问题
- 从读取视频程序比较opencv1.0与2.0以上版本
- 最新发布:Windows Azure Toolkit for Social Games 1.0版本
- 【水晶报表之图片篇-a】 动态加载图片(图片文件版本及数据库版本)
- Containerd迎来1.0通用版本
- 打印控件更新至2.0版本
- 校内网API的.net版本XiaoNei.Net 1.0(非官方)
- 利用XML实现通用WEB报表打印