I want to convert a web page into a pdf file. How to do it without using any third party component?
Loading
I want to convert a web page into a pdf file. How to do it without using any third party component?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
DuongPosted Mar 31, 2009, 12:08 AM
Does anyone know of a service where I can generate ASP pages to PDF files?
There are some but it cost about $1 a piece for it.
I am willing to get a second host and buy some software and link them together.
Mahesh ChandPosted Feb 25, 2009, 11:59 AM
Here are two more components to do so.
DynamicPDF and ExpertPDF
Niradhip ChakrabortyPosted Feb 25, 2009, 11:53 AM
1.http://www.html-to-pdf.net/Support.aspx#csharp
2.http://www.codeproject.com/KB/showcase/TallComponents.aspx
lovely nehaPosted Feb 25, 2009, 6:26 AM
hii...
try this code...
string
filename = "Customer";Response.Clear();
Response.AddHeader(
"content-disposition", "attachment;filename=" + filename + ".pdf");Response.Charset =
"";Response.Cache.SetCacheability(
HttpCacheability.NoCache);Response.ContentType =
"application/pdf";System.IO.
StringWriter stringWrite = new System.IO.StringWriter();System.Web.UI.
HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);DataGrid1.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();