NCHASHIM Posted January 31, 2020 Share Posted January 31, 2020 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 More sharing options...
Solution bigalex Posted February 4, 2020 Solution Share Posted February 4, 2020 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now