This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Issue with jasper reports export Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Issue with jasper reports export" Watch "Issue with jasper reports export" New topic
Author

Issue with jasper reports export

Karthikeyan Kannan
Greenhorn

Joined: Aug 25, 2004
Posts: 1
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.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET,
Boolean.TRUE);
// 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with jasper reports export
 
Similar Threads
Generate excel reports using jasper report
Jasper Reports getting resubmitted to a servlet
Same Jasper Report keeps opening
Excel size in Jasper Report
simple jasper report in java without a database.