Jump to content
Changes to the Jaspersoft community edition download ×

Data in Detail band (only) not showing up in Xls


citress

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 3 years later...
  • 3 years later...

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