osterholt Posted December 22, 2011 Share Posted December 22, 2011 Hello all,I want to place two textfields in the page header band: the first one is always shown and may consist of one or several lines of text. The second one should be placed directly below the first. But this one only appears under special conditions (Print When Expression). Its position type is set to "float", so when the first one is growing, the second one shifts down.The problem is: I have to put the second field below the first one, otherwise "float" will not work. But then the page header must be two lines high (see 1st image), otherwise I get an exception when compiling "(Warning: Element bottom reaches outside band area..."; 4th image). This leads to an empty space when the first one contains only one line of text and the second one is not shown (because of condition=false; 2nd image), How can I avoid this empty space?Coming from Crystal Reports, I thought I could create a second page header and put the second textfield there (and conditionally suppress the second page header). But in Jasper Report this is only possible for detail bands. How can I achieve this in the page header?Thank you very much for your help.Kind RegradsMichael Link to comment Share on other sites More sharing options...
augarte Posted December 23, 2011 Share Posted December 23, 2011 Try setting a height of 1 pixel to your field, and the check "Stretch with overflow" option.Hope this helpsRegards. Link to comment Share on other sites More sharing options...
osterholt Posted January 17, 2012 Author Share Posted January 17, 2012 Thank you augarte, that helped a lot.Kind Regards 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