gauravkumar350 Posted May 3, 2017 Share Posted May 3, 2017 Jasper studio version 6.3.1Jasper server version 6.3.0I have one simple report with bandsTitlePage Header (height 0px)Column HeaderDetailColumn Footer (height 0px)Page footer (which consist pagination)summary (height 0px)It is working fine with other formats likePDFXLSX (PAGINATED)(Here it is being well paginated).XLSXBut issue appear when exported as Excel paginated. In this case it completly ignores the footer band and it just appear same like Excel without pagination.Please help. Link to comment Share on other sites More sharing options...
szaharia Posted May 4, 2017 Share Posted May 4, 2017 By default page footers are excluded from the Excel export. To change this behavior, you need to set this property in your JRXML file:<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value=""/>[/code]This will override the net.sf.jasperreports.export.xls.exclude.origin.band.2=pageFooter setting in the jasperreprts.properties file. Link to comment Share on other sites More sharing options...
gauravkumar350 Posted May 4, 2017 Author Share Posted May 4, 2017 Thanks shertage it worked :)But what if i have to repeat header too. Link to comment Share on other sites More sharing options...
szaharia Posted May 4, 2017 Share Posted May 4, 2017 In case of repeating page header, set this property in the report:<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1" value=""/>[/code]To repeat column header, you should set this property:<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.3" value=""/>[/code] 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