Reputation: 4515
I have a webpage with some data in a table and I would like to offer my users the option to download it as a PDF File, how can I do that in ASP.Net?
Upvotes: 1
Views: 655
Reputation: 3095
If you are using asp.net mvc and want to convert result from mvc views into pdf. You can look at this blog post.
If you are considering to print complex pdf reports from c#. You can check out this blog post.
Disclaimer: I am the author of jsreport.
Upvotes: 0
Reputation: 9479
wkhtmltopdf works great and uses the webkit rendering engine (Safari, Chrome) instead of a cooked up html/css parser.
The benefit is that you simply give it your url and it returns a pdf. You would just need to make a printer friendly version of the page to send to it.
Upvotes: 1
Reputation: 23868
You can also use the MS ReportViewer control and render your PDF from code if you don't want the actual viewer on the page.
Upvotes: 0
Reputation: 18181
Upvotes: 0