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:
- You can use a report generator like sql report or crystal report to generate the pdf file.
- 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.
2009-07-01 23:45:31
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
2009-07-01 23:49:54
+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
2009-07-01 23:58:48