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

Change Report Display upon export?


NCHASHIM
Go to solution Solved by bigalex,

Recommended Posts

Is it possible to change the format of a JasperStudio 6.2.1 report upon export?

I have a customer that wants the Report Title removed when he exports to the XLSX format. 

I changed the report title to a variable in hope that I could reset its value to NULL when an export was done.  However, I don't see any builtin functions that recognizes that the operator has requested an export.  Is it possible to do this with any kind of in-house written java function? 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

Add to the source code:

To remove header on export:<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.1" value="pageHeader"/>To remove footer on export:<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.2" value="pageFooter"/>

 

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