iReport - "the document has no pages"

...very frustrating problem I hope someone can help me with.

 

Have created the same report a few times over in iReport 3.1.2.  The problem is that, as I'm working with the report, eventually I try to make a filter that I just can't get the syntax right on.  When I take a stab at it, and it doesn't work, I go back and delete the filter, re-run the report and see that it works as before.

 

...but.  After a few tries, after deleting the filter, iReport will just say "the document has no pages" when trying to preview it.  And nothing I can do fixes it, nor can I really see where a problem might be.  Closing and reopening the report does not help - nor does restarting iReport, JS, or the whole machine.

 

...? 

motoman's picture
190
Joined: Aug 19 2008 - 1:48pm
Last seen: 14 years 7 months ago

4 Answers:

hi motoman

The no pages messages comes out when the report has not records or you discarded all of them with a wrong filter expression.

There are a couple of things you can try:

1. set the filter expression to:

new Boolean(true)

This will in some way reset your filter expression.

2. Set the report property "When no data" to "All sections no details" so you can see at least the rest of the report.

bye

Giulio

giulio's picture
70422
Joined: Jan 2 2007 - 4:15pm
Last seen: 2 weeks 3 days ago

...well, I am not sure as to why, but putting "new Boolean(true)" into the Filter field made my report run again!  Yay!

 

...I take it that this is kind of a common occurence then? 

motoman's picture
190
Joined: Aug 19 2008 - 1:48pm
Last seen: 14 years 7 months ago

select eidt / properties / more ,in if no infomation listbox,select all sections,no detail option,then the report will work

gysheng's picture
227
Joined: Apr 11 2010 - 11:48pm
Last seen: 12 years 11 months ago

maybe, select there style XPath from the Datasource and check again... too check the enviroment

ludwingq1g's picture
Joined: Feb 8 2013 - 10:08am
Last seen: 3 years 6 months ago
Feedback
randomness