Hi, U can make export option in report i.e u can generate report in different format like excel,text,PDF. For generating PDF report u can take help of PDFGenerator.jar, just make certain changes according to ur need in jar. N once u go through PDFGenerator code u can easily write code for excel n text.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com