Posted on: 6/27/2014 6:08:50 AM | Views : 502

So Itext sharp pdf and have a form that takes input, then it takes that input, including the user's email address, makes the pdf, then sends an email with the pdf attached at the user inputted email address. That said, the attachment and pdf generation works, but when you download or try to open the pdf, it does not open or anything. Here is the code:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using iTextSharp.text; using iTextSharp.text.pdf; using System.IO; using System.Net.Mail; using System.Net; using System.Net.Security; using System.Web.UI.HtmlControls; namespace pacfam { public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } public void ShowPdf(string filename) { //Clears all content output from Buffer ...

Go to the complete details ...