FineReport 发表于 2012-10-7 19:08:58

Java报表工具finereport使用小心得


Java报表工具finereport使用小心得以下情况是我的学习FR中自己遇到的问题:

1.在制作模板时,如何将报表中的值传递到超链接网页呢?
      在项目中以frame方法把F1.CPT放到项目的页面中,对F1.CPT做网络报表超链接F2.CPT,然后在F2.cpt页面中,做个超链接的网页,超链接的URL里面输入地址,并在下面输入要传递的参数名和参数值,然后在网页中通过request.getParameter("超级链接中的参数名")获取参数就可以直接使用了。   

2.一个模板的2个sheet之间的取值和校验?
      在某个单元格里直接输入=sheetname!cellname 来实现跨sheet取值,eg:=sheet2!A2就是sheet2表单的A2单元格的值,校验同样原理。

3.下拉框的选值发生变化:
       在下拉框里设置好数据源,显示值和实际值,但在选中某个值之后却发现选中的值变为了实际值了,在这里需要在这个单元格的样式里重新把数据源再设置一遍就可以了。

4.超链接传值,如何动态的传别的对应单元格(一一对应的单元格)的值?
      在超链接中,正常传递参数eg: PKID='${PKID}',然后在右边的参数栏里添加参数PKID,其值选择公式,协商你要传递的值的 单元格
   
5.JS取值失败:
       在用JS GetCellValue取值的时候会发现取值不对,或者为空。这有可能是因为你要取值的单元格是在某个扩展行的后面了,所以导致单元格的位置发生了变化,所以尽量要在扩展行的上面放置你JS要取的值。

6.报表的的端口:
      FR自身有一个端口8075,但我们在使用的过程中一般都不会用8075作为FR的端口来使用,通常和TOMCAT之类的服务结合起来使用。
7.数据混乱,不是一一对应的:
       首先检查数据库看数据是不是一一对应的,如果没错,那可能是单元格的左父格设置问题,建议自己多做几张实践下就会明白左父格的含义。
8.模拟GridView的一些功能可以去看下面的连接:
       http://bbs.finereport.com/thread-14558-1-1.html
9.批量导出报表:
      http://localhost:8079/WebReport/ReportServer?reportlets=({reportlet:/FRTable501.cpt},{reportlet:/FRTable601.cpt})&format=excel&__filename__=name   但该功能在导出13张报表的时候就会出错。

10.点击页面弹出子页面,按钮的点击事件
FR.showIframeDialog({
url:"ReportServer?reportlet=SMES/NewAdd.cpt&op=write",
title:"title",
width:600,
height:600
})
或者
FR.showDialog("测试", 400, 400, "<div><iframeid='reportFrame' style='width:100%;height:350px'src='http://localhost:8075/WebReport/ReportServer?reportlet=SMES/NewEdit.cpt&op=write&KID=${CopID}'></iframe></div>", {collapsible:true});

11.子页面刷新父页面
在父页面做个按钮,ID为btnRefresh点击事件为:location.reload();
在子页面的填报成功事件里写:
var top = window.parent;
var reportPane = top.contentPane;
var btn =reportPane.curLGP.write.getWidgetByName("btnRefresh");
btn.fireEvent("click");

12.另外大家在画模板的时候,特别是对一些表格的制作方面,最好是每个单元格都是合并的单元格,这样以备后来的修改方便。如果每个数据都仅占用一个单元格,后期需要发生变化 就会给修改表格的样式带来麻烦。

vunbar 发表于 2012-10-20 18:58:26

我也在用,感谢你的分享,总体来说不错的报表!
唯一欠缺就是每填写一个格子都要实时ajax请求通信,网络条件不好的情况下会出现填写延迟现象!

FineReport 发表于 2012-11-11 23:36:07

vunbar 发表于 2012-10-20 18:58 static/image/common/back.gif
我也在用,感谢你的分享,总体来说不错的报表!
唯一欠缺就是每填写一个格子都要实时ajax请求通信,网络条 ...


您好,您反应的这个问题我会跟相关技术人员反馈的,到时一定会给你满意的答案。您可以先关注以下链接锚文本链接表:1.    报表: http://www.finereport.com 2.    报表工具:http://www.finereport.com/knowledge ,http://www.finereport.com/products/functions 3.    报表软件:http://www.finereport.com/products ,http://www.finereport.com4.    java报表:http://www.finereport.com/products/advantages 5.    java报表工具:http://www.finereport.com/javareport 6.    java报表软件:http://www.finereport.com/products/advantages 7.    web报表:http://www.finereport.com/knowledge/professional/webreport.html 8.    web报表工具:http://www.finereport.com/web-reportingtool 9.    web报表软件:http://www.finereport.com 10.水晶报表:http://www.finereport.com/knowledge/aquire/crystalreport.html11.润乾、润乾报表:http://reportblog.cn/archives/271                http://www.finereport.com/knowledge/aquire/vs.html12.填报、报表填报:http://www.finereport.com/knowledge/write13.表单工具:http://www.finereport.com/knowledge/acquire/menu.html14.分组报表:http://www.finereport.com/knowledge/professional/groupreport.html15.交叉报表:http://www.finereport.com/knowledge/professional/crossreport.html16.类excel报表:http://www.finereport.com/knowledge/aquire/excel.html17.报表打印:http://www.finereport.com/knowledge/aquire/bulkprint.html 18.web报表打印:http://www.finereport.com/knowledge/acquire/vs_print.html ,http://www.finereport.com/knowledge/aquire/bulkprint.html19.   java报表打印:http://www.finereport.com/knowledge/acquire/javareport-print.html20.报表设计、报表模板:http://www.finereport.com/knowledge/design 21.报表教程、报表演示、报表视频演示、报表视频教程、报表制作教程、报表入门教程、报表设计教程:http://www.finereport.com/products/demo            http://www.finereport.com/knowledge22.报表下载、免费报表下载、finereport下载、finereport报表下载:http://www.finereport.com/products/trial 23.报表案例、报表应用、报表新闻:http://www.finereport.com/success/cases24.帆软、帆软公司、报表公司:http://www.finereport.com/company 23.分片报表:http://www.finereport.com/knowledge/design/multipieces.html(多源分片)http://www.finereport.com/knowledge/design/pieces.html(纵向分片)24.多源报表:http://www.finereport.com/knowledge/design/multisource.html25.主子报表:http://www.finereport.com/knowledge/write/super-sub.html26.报表部署:http://www.finereport.com/knowledge/install27.图表相关的词语图表功能、报表图表、报表图表制作、报表(软件、工具)图例:http://www.finereport.com/products/functions#chart-functionhttp://raqblog.cn/chart (与润乾的比较)28.报表(程序数据集)的报表参数定义、参数设计、参数传递、参数引用:http://www.finereport.com/knowledge/acquire/parameter.htmlhttp://raqblog.cn/para(与润乾的比较)

风起了 发表于 2015-3-18 20:38:19

FineReport 7.1.1 无限制 永久免费,学习交流QQ: 1254491201
FineReport 7.1 无限制 永久免费,学习交流QQ: 1254491201
FineReport 7.0 无限制 永久免费,学习交流QQ: 1254491201
页: [1]
查看完整版本: Java报表工具finereport使用小心得