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

How to export content of a page header band in JasperReport to Excel's header?


stevanzaric

Recommended Posts

I need to export reports from Jasper to Excel. I am using iReport 5.6.0. The thing that I don't know how to achieve is to export content of a page header band to Excel's header, and similarly, the content of a page footer band to appear in Excel's footer.

I'm aware of existing properties, e.g. net.sf.jasperreports.export.xls.sheet.footer.center, but with that I can only set static text in Excel's footer.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

There is an equivalent property for setting the header called net.sf.jasperreports.export.xls.sheet.header.center (http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.export.xls.sheet.header.center).

To set a dynamic value - in the Add/modify property window, select the 'Use an expression' checkbox and then you can use whatever expression you want.

Link to comment
Share on other sites

  • 1 month later...

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