niik Posted August 1, 2007 Share Posted August 1, 2007 Hi All, There are several posts on how to make page footers (for data that needs to display on the bottom of pages) display only on the last page or the last page of a group.However, if you use a "print when expression" to suppress the footer in certain cases (example: Invoice only sometimes displays discount phrase at the bottom of last page), jasper will still reserve space for the footer band and cause a page break, before it would be necessary with no footer band present.Is there (1) a way to keep a suppressed footer from reserving space;Or (2) a way to make a group footer display on the bottom of the page, to act like a page footer on the last page of a group? Any other ideas? Thanks Link to comment Share on other sites More sharing options...
codyjasperForge Posted August 1, 2007 Share Posted August 1, 2007 You could use a subreport. Place the 'subreport' element inside the pagefooter band, (the height can be as small as 1pixel). Then inside your subreport place only the necessary elements that you wish to display (either in the page/column footer of it, or what ever band suits your needs) Then apply your 'Print when expression to the subreport element. (Or the pagefooter band itself) This way if the subreport does not display any elements, it will only occupy 1 px of space in the page footer... Does this make sense? Link to comment Share on other sites More sharing options...
niik Posted August 1, 2007 Author Share Posted August 1, 2007 Thanks for the suggestion....tried it out... Jasper doesn't support overflow of a subreport in a footer band. I have to make the band a sufficient height to avoid the runtime error caused by this fact. This will cause that band to reserve space, even when it isn't displaying. The issue remains. Any other suggestions?Post edited by: niik, at: 2007/08/01 14:47 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