Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with jasper reports export

Karthikeyan Kannan
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am having issues with export report to stream with XL format or HTML format. Though I could do the same with PDF format.

// PDF Stream
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());

// XLS stream
JRXlsExporter exporter = new JRXlsExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
// exporter.exportReportToStream(); -- this would raise error

As the above method is a protected method, we cannot use the same. Is there any way to overcome this.

Thanks in Advance.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic