Jump to content

Problem with blank rows when excluding bands and exporting to PDF.


ggeeslin

Recommended Posts

I would like to create reports that can be exported as xls or pdf and have different layouts depending on which export type is chosen. I’m trying to accomplish this by excluding certain groups/bands based on export type, and this works fine for removing pdf bands from the xls output.


There would be an empty row wherever a band was excluded, but I can use <property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/> to remove these empty rows.


There does not appear to be a pdf equivalent to this property, so when I export to pdf and exclude the xls groups I am left with empty space wherever the xls bands would have been.


I tried using “Remove Line When Blank” for every item in the row, and I’ve tried putting every item in a frame and using ”Remove Line When Blank” on the frame. I’ve also tried excluding by key instead of by band, but none of these methods worked.


Does anyone know how to make sure that bands excluded when exporting to pdf do not leave blank space behind in the final output of the report?


Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...