Tigerman Posted March 9, 2015 Share Posted March 9, 2015 When generating my report, sometimes in the middle of a sub-report I have a big white space due to an unexpected page break. So the detail of the sub-report continues on the next page, even if there are enough place on the current page. The same issue occurs sometimes also when a sub-report is completed, the next one starts on a new page ignoring the current page. I cannot figure out how to change that behaviour, since it occurs not always and the expected output is not to have any white space. How to avoid that kind of white spaces, especially a table that is split in the middle of the page ... Enclosed - The structure my report (report.png) - the issue occurs in the "Quote Blocks" area, so the same block is split with a big white space or the next block moves to the next page - An example of a PDF is correct (pdf_ok) without unexpected breaks - An example of incorrect PDF Thank you in advance for your help. Any idea is welcome! Link to comment Share on other sites More sharing options...
Tigerman Posted March 9, 2015 Author Share Posted March 9, 2015 The sources are here:- The Master Report with all the structure (MasterReport.jrxml)- The sub report with 'Quote blocs' subreports (SubBlocks.jrxml)- A subreport block with detail (SubMSDetail.jrxml - there are several other subreports, if needed can be posted) Link to comment Share on other sites More sharing options...
Solution AnnMary.Thomas Posted March 9, 2015 Solution Share Posted March 9, 2015 Can you check the Detail band property Split Type and give the value "Stretch" Link to comment Share on other sites More sharing options...
Tigerman Posted March 9, 2015 Author Share Posted March 9, 2015 thanks AnnMary, I'll try it Link to comment Share on other sites More sharing options...
AnnMary.Thomas Posted March 10, 2015 Share Posted March 10, 2015 Pls update the result or else we will check for other possibilities :) Link to comment Share on other sites More sharing options...
Tigerman Posted March 11, 2015 Author Share Posted March 11, 2015 The split type = 'Stretch' created another white space another page break just before filling the subreport. Previously the page break occured in the middle of the sub-report...So if there are other possibilities to check?/sites/default/files/images/pdf_stretch_nok.png Link to comment Share on other sites More sharing options...
Tigerman Posted March 11, 2015 Author Share Posted March 11, 2015 The split type = 'Stretch' created another white space another page break just before filling the subreport as in the screenshot in my comment above. Previously the page break occured in the middle of the sub-report... So if there are other possibilities to check? Link to comment Share on other sites More sharing options...
AnnMary.Thomas Posted March 11, 2015 Share Posted March 11, 2015 In which band you gave the. That is the detail band of the Main report or the sub report itsef? Link to comment Share on other sites More sharing options...
Tigerman Posted March 18, 2015 Author Share Posted March 18, 2015 at all level reports - in the main and the sub and the sub-sub Link to comment Share on other sites More sharing options...
AnnMary.Thomas Posted March 18, 2015 Share Posted March 18, 2015 Check the height of the subreport (total of all the band heights in subreport). have you specified the same height in the main report for the subreport Link to comment Share on other sites More sharing options...
Tigerman Posted March 24, 2015 Author Share Posted March 24, 2015 I've got it - I recreated all reports (main and subs) based on your recommendations - with splitType="Stretch" on all detail bands and with the same height (it was already the case, but I did it again :-) I had always in some cases the page break - I changed then the footer and header margins on the master report. From 40 to 18 - and miracle - the blank space was totally eliminated or significantly decreased. Thank you AnnMary for your support and help. You gave me right ideas Best regards Link to comment Share on other sites More sharing options...
AnnMary.Thomas Posted March 25, 2015 Share Posted March 25, 2015 Thank you TigerMan. Glad to know that my answer helped you. Can you please check the point as answer so that it would help others also :) Link to comment Share on other sites More sharing options...
Tigerman Posted April 1, 2015 Author Share Posted April 1, 2015 1- check the Detail band property Split Type and give the value "Stretch"2 - reduce the page header and footer area 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