Jaspererports iReport: split report into several excel sheets on export

旧时模样 提交于 2019-12-18 07:07:45

问题


I have a report which I created using iReport designer. The report contains 3 datasets and 3 tables, which get filled with data from those datasets. Each table is located in detail band. Our business owner wants these 3 tables to be displayed on 3 different excel sheets upon excel export. I have checked several tutorials and posts, but none of them seems to work for me. Help needed! Thanks in advance!


回答1:


add pagebreak after each table, then set property

net.sf.jasperreports.export.xls.one.page.per.sheet to true

like this

<property name="net.sf.jasperreports.export.xls.one.page.per.sheet" value="true"/>

for more reference visit this page



来源:https://stackoverflow.com/questions/32368386/jaspererports-ireport-split-report-into-several-excel-sheets-on-export

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!