Use below code
https://www.aspforums.net/Threads/157711/can-we-display-table-data-in-pdf-page-using-asp-c/
its working on "http://localhost:24319/WebForm1.aspx"
but while i have lounch in ISS , its given error.
Server Error in '/Meja_Tel_Dir_PDF' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'iTextSharp' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
|
Line 9: using System.Data.SqlClient;
Line 10: using System.IO;
Line 11: using iTextSharp.text;
Line 12: using iTextSharp.text.pdf;
Line 13: using iTextSharp.tool.xml;
|