ye_l Posted August 26, 2019 Share Posted August 26, 2019 Hello, i would like to have a number of 33 rows in the detail band no matter if 10 or 5 rows are filled. I´ve tried a lot but i did not find a solution.Can you please help me?Thank you Link to comment Share on other sites More sharing options...
C-Box Posted August 27, 2019 Share Posted August 27, 2019 perhaps just an idea:Just render your filled results from main query (e.g.) 10 records in the main report and then place a SubReport into a following band (e.g. summary or a group footer) with a DataSourceExpression like this:new JREmptyDataSource(33 - $V{REPORT_COUNT}) where $V{REPORT_COUNT} is the current record number consumed by the main report.in your SubReport layout you could then easily generate empty lines/borders whatever to simulate a kind of "prefilled formular" with just partly filled rows.Of course you should consider, what happens, if you have more than 33 records in your main query returned.... so perhaps you should then make a Rest division by 33 or whatever else.hth + regardsC-Box Link to comment Share on other sites More sharing options...
ye_l Posted August 27, 2019 Author Share Posted August 27, 2019 Thank you very much C-Box!!! It works great!!!Best regards!!Yes, now I have a problem with more than 33 lines. I have the subreport with the empty lines in column footer. If I have more then 33 lines, i want that the subreport appear when the $V{REPORT_COUNT}%33>0. But in every row of the Detailband, the subreport appears and I have many empty Rows. How can I make sure that at the end of the table I have the total number of lines and then the column band comes.I've already tried Pagecount. But that did not workThank you! 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