.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Fauzul Azmi
Asad Ali

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Webform values convert into PDF file

Posted By: pooja     Posted Date: April 04, 2010    Points:2   Category :ASP.Net
Hi frnds..

i have a aspx page which is a registration page.
I want like ... after enterting ann the values if i click button then it should save as pdf format...

pleas tell em how to do this

than xin advance

Author: Amit Mehra             
Posted Date: April 05, 2010     Points: 5   


Please refer this article. this will help you to create pdf file


Please "Mark As Answer " if this post help you.
Author: Sagar Pardeshi             
Posted Date: April 06, 2010     Points: 5   

Hi pooja

u can all form information export in .pdf

u following code

protected void Button1_Click(object sender, EventArgs e)


Response.Buffer = true;
//Response.ContentType = "application/pdf";
Response.ContentType = "application/vnd.ms-excel";
StringWriter stringWriter = new StringWriter();
HtmlTextWriter htmlTextWriter = new HtmlTextWriter(stringWriter);
//this.RenderControl(htmlTextWriter); this is for whole page.


Author: arronlee             
Posted Date: March 14, 2014     Points: 20   

Thanks for sharing the code.

Next Tomorrow is Another Day .
Author: arronlee             
Posted Date: June 21, 2015     Points: 20   

But I perfer to convert PDF files using some 3rd party toolkits.
Here are some tutorials about it:
I hope it helps as well. Good luck.

Next Tomorrow is Another Day .
Author: hark             
Posted Date: June 05, 2014     Points: 20   

are you trying to convert webpage into pdf?


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend