• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

export JSP report to pdf format

 
Vivek Mathur
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I am displaying a report in jsp page , i need a code on button click with which the report can be exported in .pdf formate .

Can any one help me out in this regard.I need it urgentely.

thnks

[ October 11, 2007: Message edited by: Vivek Mathur ]
[ October 11, 2007: Message edited by: Vivek Mathur ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vivek Mathur:
I need it urgentely.


Vivek,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see
EaseUp to find out how adding the word 'urgent' to your post or subject line can actually slow down or stop responses to your question altogether.


Again, welcome to JavaRanch and good luck with your question.
-Ben
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing built into JSP for creating PDF documents.
You'll need to look into a 3rd party product like iText or Apache FOP.
 
Vivek Mathur
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Mr.Ben Souther !

Thanks for the help and i'll remember that "never to use words like urgent".
sir i have already checked some of the third party utilities,today i was reading about iText, it gives some api 's however for that i have to do all the database handling with their components and then using that component i can export to pdf. I have also checked a little about Java Report Component . But i don't want to do all the database part again.

So, is there any way in which i can export the jsp page on which i am showing the reports,using these third party utilities or any other thing.

thnks for your help.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the FlyingSaucer library (linked on the AccessingFileFormats page). It can convert CSS-styled XHTML to PDF.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic