Jump to content
We've recently updated our Privacy Statement, available here ×

Exclude table component columnFooter and tableFooter on export


Go to solution Solved by ghudson_1,

Recommended Posts

Hi all,

 

I have report template and requirement to exclude part of table when exporting report to excel.

 

Report have summary band with table component inside. I set up properties as below. It works for columnHeader, but cannot make it work work for columnFooter and tableFooter.

 

<property name="net.sf.jasperreports.export.xlsx.exclude.origin.keep.first.band.1" value="columnHeader"/>

<property name="net.sf.jasperreports.export.xlsx.exclude.origin.keep.first.report.1" value="*"/>

<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.4" value="columnFooter"/>

<property name="net.sf.jasperreports.export.xlsx.exclude.origin.report.4" value="*"/>

 

Anyobody know the trick?

 

Thanks

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution
Table column footer cells actually end up rendering as a page footer band in a subreport generated for the table. Therefore if you want to exclude the column footer cells you'll need to define a property for pageFooter.

 

<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.1" value="pageFooter"/>

 

A defect or feature request for improvement in the product for this issue has already been filed against JR Library 6.2.x

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