Jump to content
Changes to the Jaspersoft community edition download ×

No data in XLS report


2005 IR Help

Recommended Posts

By: Piotr Sieniawski - psieniawski

No data in XLS report

2004-06-21 08:18

Hi.

I use the following piece of code to get PDF or XLS reports.

 

...

if (FORMAT_PDF.equals(format))

JasperExportManager.exportReportToPdfStream(jPrint,stream);

else if (FORMAT_XLS.equals(format))

{

JRXlsExporter exporter = new JRXlsExporter();

exporter.setParameter(JRExporterParameter.JASPER_PRINT, jPrint);

exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, stream);

exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);

exporter.exportReport();

}

...

For PDF I get what I want, but when I try to export to XLS I get only title and column headers with no data at all.

 

Am I doing something wrong?

 

 

 

 

By: Piotr Sieniawski - psieniawski

RE: No data in XLS report

2004-06-21 08:29

I have <line> tag within <details> tag and the output in XLS contains the lines, so it looks like data is iterated but not put into xls doc.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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