Sunday, 14 June 2015
1. Before starting the code for conversting the HTML to PDF using ITextSharp you need to download the ITextsharp Dll and placed it into the Bin folder. You can get the ItextSharp Dll from below path;
2. Now you want to generate the PDF, by clicking any of the button in your page, You have to place the below code on your C# file and there it will pass the HTML content to the Export method where it is using the ItextSharp methods for converting the HTML to PDF..
protected void btnGeneratePDF_Click(object sender, EventArgs e)
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
// string redirectUrl = HttpContext.Current.Request.Url.AbsoluteUri;
You will like to read it
Getting Error as: Severity Code Description Project File Line Suppression State Error No Java files found which extend CordovaActivity. O...
You can use this application to check the availability of URL are there are not it can be used as the BVT test for your application. T...
1. Before starting the code for conversting the HTML to PDF using ITextSharp you need to download the ITextsharp Dll and placed it int...
Changing color of the row of grid on doing on putting the mouse over to it. It is generally used to highlighted the row of grid. You need ...