引入标签
<%@tiglib uri="/WEB-INT/runqianReport4.tld" prefix="report" %>
然后在jsp页面中加入
<report:html name=”…” reportFileName=”…” …./> 根据实际情况填写一些属性值,如打印。
这就引入了统计报表了,接着是参数报表
在jsp页面中加入
<report:param name=……paramFileName=…./> 如:
<%........
String param = "cdytzt=" + cdytzt + "; cdyt=" + cdyt + "; sqrmc=" + sqrmc + "; bcdrstr=" + bcdrstr + "; qlidstr=" + qlidstr + "; htidstr=" + htidstr +
";reportCode=" + ReportCodeConstants.DANGAN_CDJL + "; ywslid=" + ywslid + ";fwid=" + fwidstr+ ";userid=" + userid+";sfzdclyzdf="+sfzdclyzdf+";cfdy="+cfdy;
String reqFile = "/dangan/cxjl.raq";
String myTargetPage = "/soar/commonbiz/report/success.jsp";
String raqFileName = ReportCodeConstants.DANGAN_RGGYCDJL;%>
<report:html name="<%=raqFileName%>" reportFileName="<%=reqFile%>"
generateParamForm="no"
needPageMark="yes"
params="<%=param%>"
submit=""
savePrintSetup="yes"
backAndRefresh="<%=myTargetPage%>"
/></div>
遇到的困难二 统计报表中有一个参数是参数报表中没有的,在输入时间条件查询后,该参数值就会丢失
解决方法是 在参数报表了添加 hiddenParams 即隐含的参数 该参数值就是统计报表的参数值