Since, developing a component ourselves
is complicated and time consuming task we can try using any free 3rd
party component available in the market. In this article, we will try using one
of most widely used PDF generation component called iTextSharp
or iText
PDF component.
According to iText PDF
official site,
iText is a library that allows you
to generate PDF files on the fly.
iText is an ideal library for
developers looking to enhance web- and other applications with dynamic PDF
document generation and/or manipulation.
In this article, we will see
about,
1. Simple PDF generation from an in-memory string or HTML
string
2. Export Page Content to PDF
3. Export GridView control to PDF
Steps
1. Open Visual Studio 2008, Click File >Website and choose ASP.Net
Website.
2. Select a language of your choice. I have selected C#. You can name
your website as per your need.
3. Download the iText PDF component from the official site (or
from here) and add it to your project through add
reference dialog box.
|