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.Generate documents and reports based on data from an XML file, HTML table, .Net DataTable or a database.
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:
Default.aspx.cs
DLL For itextsharp: [DOWNLOAD]
No comments