Jasper report not showing detail section

六眼飞鱼酱① 提交于 2019-12-25 18:32:58

问题


I have designed a report in iReport and now I am using it in my application.

The problem is that the report is generated showing all the data except the detail section data. There is no database connectivity problem, as the column header shows data which is coming from database. Only the detail section of the report shows nothing, neither data from database nor any static data.

What is going on?


回答1:


Is your header section in a subreport? If so, and you're passing the main report datasource to the subreport, it will have advanced the current record 'pointer' of the datasource past your data, and your detail section will be blank.




回答2:


You have to put all your data in one Band to avoid these kind of errors



来源:https://stackoverflow.com/questions/2188528/jasper-report-not-showing-detail-section

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