iReport - "the document has no pages"

0

...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
20
Joined: Aug 19 2008 - 1:48pm
Last seen: 10 years 9 months ago

4 Answers:

0

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
20736
Joined: Jan 2 2007 - 4:15pm
Last seen: 3 months 1 week ago
0

...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
20
Joined: Aug 19 2008 - 1:48pm
Last seen: 10 years 9 months ago
1

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

gysheng's picture
11
Joined: Apr 11 2010 - 11:48pm
Last seen: 9 years 1 month ago
1

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 7 months ago
Feedback
randomness