Well it's been quiet a long time since, I last posted on my blog. I have done a few things in the past which can be posted in my blog but, I find it dificult to gather these information in a bloggable way. So, How am I writing this post? well, I have a friend who always used to push me to write a post atleast, once a week. I should really thank him for pushing me all the time.
This post will be based on ITextsharp which is an assembly available as a freeware for creating PDF reports.
As enterprise developers we develop systems to help(enable) organizations make key business descisions on it's business domain. System reports play a major part in describing the current state of the business. If the system,budget are huge and the system is considered to be critical then an organization would go for a BI project. If the above said is not the case then they would just hang on with HTML reports. It is not a bad idea to display reports as HTML inorder to stay within budget but, this comes up with certains limitations which can be eliminated by using PDF reports.
There is a well documented and easy to use API available as a .net assembly in http://itextsharp.sourceforge.net/ and could be downloaded for free. There are a lot of things you can do by using this dll. Some of the important points are given below,
- HTML to PDF
- Support for working with XML,RTF,etc
- PDF reports.
- iTextSharp.text.xml
- iTextSharp.text.rtf
- iTextSharp.text.pdf
- iTextSharp.text.markup
- iTextSharp.text.html
The highlight of all these will be the iTextSharp.text.pdf. We can find almost all kinds of classes and methods which are used to create pdf files. It has two classes to create pdf tables one is Pdftable and the ohter is the PdfPtable. Both, have there own good and bad but, one can use either of these classes and build good looking, portable and feature rich reports. In addition to merely creating files you can also do the following,
- Merge PDF files.
- Append information in one PDF to another.
- Create reports based on a template, etc.
I hope this gives you a good impression about this API and the power of it. I suggest one can make some really cool reports using this API with a bit of creativity.
Enjoy.....