“Document has no pages” on iReport and nothing on OpenReports

前端 未结 6 1982
梦谈多话
梦谈多话 2020-12-11 23:54

I am having an issue with JasperReports I can not solve. I am using Eclipse, OpenReports 3.2 and IReport 3.7

The issue I am having is that the report does nothing. W

6条回答
  •  半阙折子戏
    2020-12-12 00:36

    If you are using the Detail Bandeport, then you will need a Data Query for the report. Since it's returning "No Pages" in iReport, then you either don't have a query. Or simply your query is not returning any rows.

    In old iReport, from Data menu, choose Report Query and write your query here. If you want only one record (i.e. Detail band only one time) you can use a dummy table. Like:

    SELECT 'a' FROM DUMMY
    

    Otherwise, if you don't want to use the Detail Band, you have the option to view the other bands without using a query. From Edit menu, choose Report Properties, under More... tab, set the flag When no data to All Sections, no detail

    Your problem is not exceptions or errors, it's just no data to show.

提交回复
热议问题