Robin Agrahari
Robin Agrahari

Reputation: 817

how to generate a report from jsp in pdf format using jasper

In my application I can connect to a database and get an array resultset and using JSP code I can iterate through the array and can display the report in my webpage using HTML.

I want that the generated report in my HTML webpage can be exported in PDF format and saved in some .pdf file.

Please tell me how to implement such technique to implement such exporting technique.

Upvotes: 2

Views: 7832

Answers (1)

Kristopher Ives
Kristopher Ives

Reputation: 6025

You can use the PdfWriter class that comes with this package, which includes a quick tutorial from IBM on how to use it:

http://www.ibm.com/developerworks/opensource/library/os-javapdf/

Upvotes: 1

Related Questions