eyale Posted January 20, 2011 Share Posted January 20, 2011 hi,i have a report that displays a table with a column header, when i export it to excel the column header disappears. is there a way to make jasper display it in excel? here is an image of the report when shown in jasper server:http://img109.imageshack.us/img109/7162/samplereportwithcolumnh.png Link to comment Share on other sites More sharing options...
eyale Posted February 10, 2011 Author Share Posted February 10, 2011 i found the answer in on of the posts:i don't know why (i suggest consider to move this properties to applicationContext.xml file) but some of the xls optionsappear in the jasperserver-ce-3.7.1/apache-tomcat/webapps/jasperserver/WEB-INF/classes/jasperreports.properties filethe lines that did the trick are:# suppress page headers and footers when exporting to XLS net.sf.jasperreports.export.exclude.origin.band.1=pageHeadernet.sf.jasperreports.export.exclude.origin.band.2=pageFooter# this gets rid of the repeating column headers and footers in excel exportsnet.sf.jasperreports.export.xls.exclude.origin.band.1=columnHeadernet.sf.jasperreports.export.xls.exclude.origin.band.2=pageFooter# keep the first column header on exportnet.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1=pageHeadernet.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2=columnHeaderthanks. Link to comment Share on other sites More sharing options...
sarahllong Posted February 21, 2011 Share Posted February 21, 2011 Hi "eyale"Thank you for taking the time to post the solution you found.I had the same problem and your solution worked for me too - thanks!Sarah Link to comment Share on other sites More sharing options...
sean_wdg Posted March 22, 2011 Share Posted March 22, 2011 I'm having the same problem. Except I have multiple reports, with each having the option to export to .pdf or .xls. They all export fine to .pdf, only a couple will have column headers when exporting to .xls - and I can't see any obvious differences between the reports that show column headers and those that don't. I'm using GlassFish 3.0.1 - do you know where would I look to find the same files you highlight? Thanks. Link to comment Share on other sites More sharing options...
mithunpv Posted June 21, 2011 Share Posted June 21, 2011 Can u gimme the solution pls, iam nt able 2 c de column header while exporting the report to excel.. Link to comment Share on other sites More sharing options...
kevinl_1 Posted January 24, 2013 Share Posted January 24, 2013 In the hope of being helpful, aberrations such as cells or columns not displaying when disposing of a Jasper report to a spreadsheet invariably result from having overlapping fields or fields that accidentally span a section of the report. This is a deficiency in the iReport designer in that it does not bring these matters to the attention of the designer and determining the actual position of fields relative to another can be tricky. It would be better if the properties window of a field not only revealed the left hand side position and width of field in pixels but also the right hand side of the field. There most probably are tricks to doing this but they are just not obvious to new-comers. Link to comment Share on other sites More sharing options...
beekerc69 Posted December 17, 2016 Share Posted December 17, 2016 i see the answer below that requires modification to a file on the jasperreport server. i don't have this luxury. i don't have access to the server and the admins will not mofidy any files. how do i force the column headers to display, but do so in the .jrxml code?Thanks Link to comment Share on other sites More sharing options...
raja_siet Posted February 13 Share Posted February 13 In my case column header is missing in PDF from 2nd page onward.. How to keep column header in all pages of export 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