[RESOLVED] Export aspx page to pdf
Hi friends,
My client have one requirement. I have an default.aspx page. In this page
<html>
<head>
<title>save pdf</title>
<body>
<div>
<table id = "tblpara">
<p> -- I have some paragraph --- </p>
</table>
</div>
<input type="button" id="btndownload" value ="Download" runat="server"/>
</body>
I have download button. Once i click download button its downloading and save as pdf file. Is it possible???
Its very urgent. Please suggest me. Hope yours reply.
Thanks
Re: Export aspx page to pdf
Hey,
One way of doing this would be to use iTextSharp:
http://itextsharp.sourceforge.net/
Hope that helps!!
Gary
Re: Export aspx page to pdf
Hi gep,
Thanks for your reply. Instead of ITextSharp, any other options are available??
Because for ITextSharp, we need to download and add dll reference.Thats y i am asking.
Re: Export aspx page to pdf
Hey,
In order to support on the fly PDF generation, then it is likely that you are going to need a 3rd party library.
I am not aware of away of doing this otherwise.
Why can you not add this reference?
Gary
Re: Export aspx page to pdf
Hi gep,
I download and add dll in my APP_Code. But the namespace using iTextSharp namespace is not available. What is the problem??
Re: Export aspx page to pdf
Hi gep,
I am sorry. I got it ya. Thanks for your help. Great :-)
Re: Export aspx page to pdf
Hey,
Glad to hear that you got it working?
Does this answer your question? If so, remember to mark your thread resolved.
Gary
Re: [RESOLVED] Export aspx page to pdf
Hi,
Use PDF Duo .NET component. It converts HTML to PDF. For example, you can convert a string with HTML source into a PDF
Re: [RESOLVED] Export aspx page to pdf
Quote:
Originally Posted by
Kostya
Hi,
Use
PDF Duo .NET component. It converts HTML to PDF. For example, you can convert a string with HTML source into a PDF
Hey,
I haven't played with this, but it is likely to include some form of binary that you have to include in your project, and that is what the OP seemed to be trying to avoid.
Gary