jasperreports icon indicating copy to clipboard operation
jasperreports copied to clipboard

Added ability to fill a vertically-filled page with blank data rows.

Open TDHewson opened this issue 6 years ago • 2 comments

By providing the REPORT_FILL_DETAIL_WITH_BLANK_ROWS parameter, a vertically-filled report can have the page's detail section filled with blank data elements; see BandFillTest.

TDHewson avatar Apr 05 '19 03:04 TDHewson

Filling rows may be used in 3 places. (I haven't encountered a situation where it's necessary in crosstab). It's better if all these would be handle in the same way with the same property.

  1. Directly in details band
  2. In List component
  3. In Table component

List component and Table component may have specified height that's less than the height of the page. As such, it may be better to fill to specified number of rows.

Also, it maybe better to specify using "properties" instead of "parameter"

ozawa-hi avatar Apr 07 '19 21:04 ozawa-hi

Hi Hitoshi,

Thank you for your response!

The specific cases where I'm interested in the above functionality is in the List/Table component cases, but of course it would be better for any approach to work for all cases.

Filling to a specified number of rows was what I attempted at first, however as the new test in my latest push attempts to demonstrate, it is not always possible to determine exactly how many empty rows to add to fill the last page when some of the data causes cells to stretch and span multiple lines, which is what I want to happen; I don't want cell data to be truncated. For this reason, my changes cause the final page to be filled after the main dataset has been exhausted - at this point, we know we just need to add empty rows until the page is full.

I completely agree that using "properties" instead of a "parameter" is a better approach. Do you have a recommendation as to how to do this?

TDHewson avatar Apr 16 '19 07:04 TDHewson