views:

152

answers:

4

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?

A: 
  1. You can use a report generator like sql report or crystal report to generate the pdf file.
  2. You can use third party pdf generate tool , and use it to generate a pdf in memory, and sent it to client use Response.Write.
J.W.
A: 

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.

JasonS
+1  A: 

Take a look at the iTextSharp library.

mgcm
+1  A: 

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.

jle