Posted on: 2/10/2014 11:18:31 AM | Views : 664

I have designed payslip and put all the required controls in panel. 
When i print the payslip it is showing correct format. 
I need to export the same to PDF. I have used iTextSharp dll. But the alignments and fonts are missing.
Response.ClearContent(); Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment;filename=Pay Slip.pdf"); Response.Cache.SetCacheability(HttpCacheability.NoCache); StringWriter sw = new StringWriter(); HtmlTextWriter hw = new HtmlTextWriter(sw); hw.AddStyleAttribute("font-size", "5pt"); hw.AddStyleAttribute("color", "Black"); hw.AddStyleAttribute("font-family", "Calibri"); hw.AddStyleAttribute(HtmlTextWri ...

Go to the complete details ...