hybris0 Posted September 22, 2010 Share Posted September 22, 2010 AFAIK the only way to layout correctly a table is to put it in the title bandThe problem arises when the table contains enough data to need more pagesIn that case the title band is stretched and the table is correctly rendered on multiple pages but the page footer is printed only in the last page.How to solve this?My objective is to create a report that contains multiple tables and charts populated by different datasources.Should i switch to subreports and forget about tables? Link to comment Share on other sites More sharing options...
thangalin Posted September 22, 2010 Share Posted September 22, 2010 What happens when you try subreports? Link to comment Share on other sites More sharing options...
hybris0 Posted September 22, 2010 Author Share Posted September 22, 2010 I still don't know. never used sub reports before but after a quick test the problem seems the same because i have to put them in title because detail band is not rendered if your subreport do not depend on a query on the master report.Anyway i found a trick:1- put the stuff in the detail band2- pass an empty datasource of size 1 as REPORT_DATA_SOURCEThis way the detail band is rendered once and all headers and footer are where they should be and the table in it spand acrooss the needed page.Quite unintuitive but i finnaly found the way. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted September 28, 2010 Share Posted September 28, 2010 Hi, Another way to do it is to put the table in the summary section and use isSummaryWithPageHeaderAndFooter="true".You can get rid of the empty data source if you set whenNoDataType="AllSectionsNoDetail" for your report. I hope this helps.Teodor 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