`
starbhhc
  • 浏览: 633093 次
  • 性别: Icon_minigender_2
  • 来自: 深圳
社区版块
存档分类
最新评论

润乾报表分页

 
阅读更多
润乾报表分页非常简单。感谢使用。
1.报表中设置按纸分页。
2.jsp页面中加载图片<div id="sfzDiv2" align="center" style="width: 100%; height: 80.5%;">
<report:html name="report1" beanName="ireport" srcType="defineBean"
needPageMark="yes" displayNoLinkPageMark="no" needSaveAsExcel="yes"
needPrint="yes"
printLabel="<img src='../images/print.jpg' border=no>"
excelLabel="<img src='../images/excel.gif' border=no>"
pageMarkLabel="第{currPage}页/共{totalPage}页"
firstPageLabel="<img src='../images/runqian/firstpage.gif' border=no >"
prevPageLabel="<img src='../images/runqian/prevpage.gif' border=no >"
nextPageLabel="<img src='../images/runqian/nextpage.gif' border=no >"
lastPageLabel="<img src='../images/runqian/lastpage.gif' border=no >"

/>
</div>
3.添加一个js就ok。report1是报表的name.这是指向一个actionaction="gatj_gjjfdxhmcxz.html
<SCRIPT LANGUAGE="JavaScript">
document.report1_turnPageForm.action="gatj_gjjfdxhmcxz.html";
//teach_showTeachDetail.html
</SCRIPT>
注意:必须写在form外....

就ok、希望大家多多光顾。互相学习。、。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics