Hi, I have a web page and user Input some Info in this page through text box
then I want to print this info on a PDF document in ASP .Net after click the submit Button.
How Is this possible?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
kalu singh raoRank #884 · 2.4K reputationPosted Jul 22, 2016, 1:07 AM EDT
{
Document document = new Document();
string path = Server.MapPath("~/PDFs");
PdfWriter.GetInstance(document, new FileStream(path + "/TestDoc2.pdf", FileMode.Create));
document.Open();
document.Add(new Phrase(this.txtTextBox1.Text.Trim()));
document.Close();
}
Ashiwani SharmaRank #5,816 · 285 reputationPosted Jul 22, 2016, 1:21 AM EDT
VenkatRank #1,496 · 1.1K reputationPosted Jul 22, 2016, 9:35 PM EDT
alice yangRank #2,329 · 607 reputationPosted Jul 24, 2016, 5:34 PM EDT
Rahul PrasadRank #2,557 · 546 reputationPosted Jul 24, 2016, 5:35 PM EDT