File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes PDF generate using jasper reports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "PDF generate using jasper reports" Watch "PDF generate using jasper reports" New topic

PDF generate using jasper reports

az ziz
Ranch Hand

Joined: Dec 17, 2008
Posts: 50
dear all,

i have a requirement like this, the data are imported from a legacy database which are saved to the oracle tables. now a scheduler should run periodically generating a pdf report on each imported records. the pdf report is not about the import of data, but report the application users should see when they print it using application. so that this pdf will be issued no matter when they print, each time i need not generate pdf. having said that, the generated pdf should be saved to the file server. the saved path will be saved to the imported table on each row.
i had used pdf servlet to create pdf in struts, but how do i generate it standalone using jasper files and write it to a file system.
i wish to do this module in a proper way (not a junk-hunky code) , so would you please give me ideas on how can i make this thing in oo way.

Thanks to all

Rajubhai Kotwal
Ranch Hand

Joined: Nov 03, 2009
Posts: 47
I am not too sure about exact solution. But if you do not wish to update .pdf file each time and want to print ther report with path stored on server then use of peer to peer approach could be the solution for your problem . Just like RSS on news' website. This might be the idea. i am not too sure about it.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
So the problem is that a PDF should be generated when the user asks for it, and it should then be stored on the server so it can be served to the next user who asks for it provided the data hasn't changed until then? That doesn't sound too hard; which part is giving you problems?

I'd start by creating the JasperReports file that generates the report; this can be done outside of a servlet container using a desktop app; that way it's easier and faster to develop and debug.

I don't see where P2P (peer to peer) approaches would fit in here at all.
Rajubhai Kotwal
Ranch Hand

Joined: Nov 03, 2009
Posts: 47 must be right. I misunderstood the question.I thought requirement is to automatically update pdf file without any upgradation later once generated. Also I thought it' going to be executed within java as there was highlight on oo concept. That's why I thought in this direction.

Best regards.
I agree. Here's the link:
subject: PDF generate using jasper reports
It's not a secret anymore!