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


Top 5 Contributors of the Month
david stephan

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

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

Hi,

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

http://www.dotnetspark.com/kb/654-simple-way-to-create-pdf-document-using.aspx

Thanks,
Amit
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.Clear();
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.
grdTest.RenderControl(htmlTextWriter);
Response.Write(stringWriter.ToString());
Response.End();

}


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:
http://www.pqscan.com/convert-pdf/
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?

http://www.rasteredge.com/how-to/vb-net-imaging/pdf-converting/




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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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