This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi i tried to use Crystal Report in my application but it seems that they prefere the .net platform, nothing worked. i heard that i could optain reports in a PDF format, if anyone could point me to a tutorial on how to do that, or if there is an example it would be great. Regards, Omar
Are you looking for an example of how to use Crystal Reports with Java to create a pdf document or are you looking for a way in java to create a pdf document?
If it is the former, I have no suggestions as I have never used Crystal Report, but looking at it on Google, it seems it's a plugin/application to generate interactive reports.
If it is the latter, there are two Java APIs that I know of that can be used to generate pdf documents, namely FOP and iText. I last used these libraries about 8 months ago, so if my comments are out of date, bear that in mind...
FOP uses XSL-FO and is simple to get working, but with past experience, can be quite slow and resource intensive when generating large reports, or reports that contain images (By large, I mean 13 000 images along with corresponding data for each image). It is not as diverse as iText when it comes to formatting the look of the report itself, but was easier to set up and the format could be created dynamically. See On Java Tut for a nice tutorial on FOP
iText has a lot of great features, but I remember it was less dynamic if you wanted to format the layout on the fly as it were. There are some really nice examples of how to use iText on their website.
Hope you find a solution...
Joined: Aug 13, 2004
Thanks guys that's exactly what i want i'll start with the IText it seems more easy Omar