|
-
Sep 30th, 2009, 06:42 AM
#1
Thread Starter
Addicted Member
[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
Failing to plan is Planning to fail 
-
Sep 30th, 2009, 07:37 AM
#2
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
-
Sep 30th, 2009, 07:54 AM
#3
Thread Starter
Addicted Member
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.
Failing to plan is Planning to fail 
-
Sep 30th, 2009, 08:11 AM
#4
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
-
Sep 30th, 2009, 08:39 AM
#5
Thread Starter
Addicted Member
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??
Failing to plan is Planning to fail 
-
Sep 30th, 2009, 08:42 AM
#6
Thread Starter
Addicted Member
Re: Export aspx page to pdf
Hi gep,
I am sorry. I got it ya. Thanks for your help. Great :-)
Failing to plan is Planning to fail 
-
Sep 30th, 2009, 08:51 AM
#7
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
-
Oct 2nd, 2009, 01:30 AM
#8
New Member
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
-
Oct 2nd, 2009, 07:16 AM
#9
Re: [RESOLVED] Export aspx page to pdf
 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|