• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting the JasperReports into Excel format

 
wadha alketbi
Ranch Hand
Posts: 55
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


I have this doPost method in my Servlet class which is generate the report as PDF format, Now I want to generate this report as an Excel format?



Thank you in advance,
 
K. Tsang
Bartender
Posts: 3599
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you try saving the jasper report in excel format in ireport software? Does the layout need changing or such? If not then you can use JRXlsExporter to export to XLS.

Here shows a sample using Jasper 5. The method calls may be outdated/deprecated in Jasper 6.
 
wadha alketbi
Ranch Hand
Posts: 55
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your help

What you said is right, I'm searching and I found that I have to use JRXlsExporter.

I added the following but it dose not work:



Any comments!
Thank you in advance,
 
Paul Clapham
Sheriff
Posts: 21705
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wadha alketbi wrote:Any comments!


My only comment is that "Does not work" is a very unhelpful problem description. Have a look at our FAQ entry ItDoesntWorkIsUseless (<-- that's a link, click it) for help on how to describe a problem in such a way that other people can discuss it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!