Jump to content

iReport - "the document has no pages"


motoman

Recommended Posts

...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.

 

...? 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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

Link to comment
Share on other sites

  • 1 year later...
  • 5 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...