Download Records In PDF File ASP.NET C#


DataTable To PDF File

iText is a PDF library that allows you to CREATE and MAINTAIN documents in the Portable Document Format (PDF).
Generate documents and reports based on data from an XML file, HTML table, .Net DataTable or a database.

We have created a DataTable with some dummy records.
On page load we have binded with Gridview as shown in image below.

There is a button to download the data.

On the button event we have created a logic to download the data from DataTable to PDF file.

Dummy Records:



DLL For itextsharp: [DOWNLOAD]

Hi! I am Sartaj Husain. I am a Professional Software Developer, live in Delhi. I write blogs in my free time. I love to learn and share the knowledge with others because it is no good to try to stop knowledge from going forward. So free posts and tutorials. more..

No comments