stelek Posted December 14, 2009 Share Posted December 14, 2009 Hi,We have a report which has a band that is optional - the user switches it on and off using an input parameter. The band has defined "print when expression" to evaluate user input. It works properly (the way it was designed) but not exactly the way we would like it to. The problem is that even tough the band is not printed (not visible), the space for the band is still reserved. This results in some empty space in the report and unfortunately, depending on the (dynamic) size of other bands sometimes produces empty pages in the generated PDFs.Is there any way to shrink the "not printed" bands to zero?regardsT.S. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted December 14, 2009 Share Posted December 14, 2009 Hi, Which report band are we talking about? Page footer or column footer? Thanks,Teodor Link to comment Share on other sites More sharing options...
stelek Posted December 14, 2009 Author Share Posted December 14, 2009 Actually it's "last page footer". It contains a "payslip form" and depending on the situation we want to have an invoice with or without a "payslip". Link to comment Share on other sites More sharing options...
natha Posted January 6, 2010 Share Posted January 6, 2010 Hi,We have exactly the same issue with the last page footer band. It would be great if a not-printed band doesn't take any place in the resulting jasperprint. Not only the last page footer band but also the details band and all others.This issue makes the "Print when expression" band property not really usable.Thanks Link to comment Share on other sites More sharing options...
Teodor Danciu Posted January 21, 2010 Share Posted January 21, 2010 Hi, If you use the last JR version, you could put the "payslip form" in the footer section of a dummy group that breaks only once per report (does not have a group expression). Use footerPosition="StackAtBottom" for your dummy group. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
hafidz Posted May 9, 2010 Share Posted May 9, 2010 same problem with me.. anyone have the solution yet? Post Edited by hafidz at 05/09/2010 04:35 Link to comment Share on other sites More sharing options...
stelek Posted May 10, 2010 Author Share Posted May 10, 2010 I did have some luck with this issue recently but it worked only in this one particular case: I created a band ("title") and put a subreport into it. The subreport was taking the whole band. I then set the "print when expression" for the subreport and enabled "remove when blank" also for the subreport. In this case, when the subreport is not printed, it will also be removed by Jasper and the band that contains the subreport will disappear completely. You might want to try it in your case. It did not solve my original problem though where I do not have a subreport. I really think we desperately need "remove when blank" for a band. Link to comment Share on other sites More sharing options...
hafidz Posted May 10, 2010 Share Posted May 10, 2010 but we cant put subreport in footer right? 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