简体   繁体   English

Jasper Report导出崩溃

[英]Jasper Report export crashes

I have a crosstab report that outputs 75 pages. 我有一个交叉表报告,可输出75页。 When I do an export to Excel, after 2-3 mins, it crashes and says "An id is required to lookup a FlowDefinition". 当我导出到Excel时,2-3分钟后崩溃,并说“查找FlowDefinition需要ID”。

The output of the query contains less than 100,000 rows and the query itself takes 25 secs to execute. 查询的输出包含少于100,000行,查询本身需要25秒才能执行。 (from Naivcat) After this, jasper server takes some more time to fill the report. (来自Naivcat)之后,Jasper服务器将花费更多时间来填充报告。 But exporting does not work. 但是导出不起作用。

FYI - I have changed the Crosstab limit to 1000000 from the default 100000. 仅供参考-我已将交叉表限制从默认的100000更改为1000000。

#limit the crosstab bucket/measure count to prevent out of memory errors
net.sf.jasperreports.crosstab.bucket.measure.limit=10000000

#suppress page and column footers and all but the first page and column headers when     exporting to XLS
net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1=pageHeader
net.sf.jasperreports.export.xls.exclude.origin.band.2=pageFooter
net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.3=columnHeader
net.sf.jasperreports.export.xls.exclude.origin.band.4=columnFooter

# report exporter hints override export parameters
net.sf.jasperreports.export.parameters.override.report.hints=false

Thanks Ravi 谢谢拉维

It could be the browser dependency, I had the same issue then i ran the report in Google Chrome, now my report is working. 可能是浏览器依赖性,我遇到了同样的问题,然后我在Google Chrome浏览器中运行了该报告,现在我的报告正在运行。

So I would advice check with Chrome or whatever you are using just try in other browser. 因此,我建议您使用Chrome或任何其他使用的浏览器进行检查。

删除总页数,仅显示“ Page 1”而不是“ 75 of 1”-这将显着改善报告的生成,因为JR不需要重新评估每个页面来添加总页数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM