etasia Posted April 19, 2011 Share Posted April 19, 2011 Hi,Here is my problem :I put a page break at the end of a subreport, but I get an empty page at the end of my report (it's logical).So I wanted to hide my page break using the Print When Expression, based on a field (call it notLast for "not last element of my list"). I've tried with many differents expressions :Boolean.valueOf($F{notLast}), "true".equals($F{notLast})?Boolean.TRUE:Boolean.FALSE, ... and so on.Nothing works in the page break (and even more, my report is never filled ! I wait for minutes, and the task never stops, I have to kill it).If I use the same expression in another element (text field, static field, frame...), it works. It take it and put it in my page break, it bugs.Any idea ?Thanks for your help. Link to comment Share on other sites More sharing options...
kolaitis Posted April 20, 2011 Share Posted April 20, 2011 Try this :new Boolean($F{notLast}.equals( new Boolean(false) )) Link to comment Share on other sites More sharing options...
etasia Posted April 20, 2011 Author Share Posted April 20, 2011 Ok, it works now, don't know why all the expressions I tested yesterday wouldn't work :(thx Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now