Jump to content

fixed rows in detail band


ye_l

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 + regards

C-Box

Link to comment
Share on other sites

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 work

Thank you!

 

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...