citress Posted September 14, 2010 Share Posted September 14, 2010 Hi, I am trying to export a Jasper report to XLS format however the data in the Detail band is not showing up - everything else such as the pie chart, grouping header and footer all contain correct data. I have exported the same report (same template, same fill data) in PDF with no issues. Can someone please take a look and let me know what I may be missing?I am using Excel 2007 on Windows 7 to open and view the report. It would open the report in compatibility mode (since it is .xls format, not .xlsx) - could this be an issue? Below is the code I use for the export to XLS. I have attached the generated XLS as well as my report template.Thanks!Code:JRXlsExporter exporter = new JRXlsExporter();exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE);exporter.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);exporter.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE); Link to comment Share on other sites More sharing options...
citress Posted September 14, 2010 Author Share Posted September 14, 2010 I just realized that the same problem exists in iReport when I preview the template in XLS and XLSX formats. Help?? Link to comment Share on other sites More sharing options...
bbb_pedro Posted April 24, 2014 Share Posted April 24, 2014 Hello,did anybody found solution for this problem ?Kind regards. Link to comment Share on other sites More sharing options...
alestar Posted February 5, 2018 Share Posted February 5, 2018 Same issue here. Did someone figure out how to export to Excel using the detail band and passing information through the data source? 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