How to generate pdf file from aspx file using SSRS? on click of Button

Posted by Mahe under ASP.NET on 9/26/2012 | Points: 10 | Views : 1202 | Status : [Member] | Replies : 1
Hi,

How to generate pdf file from aspx file using SSRS? on click of Button

Regards,
Mahe




Responses

Posted by: Eva2012 on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
I do not know how to do it by SSRS,but I know how to craete pdf from html by a PDF component(http://www.e-iceblue.com/Introduce/pdf-for-net-introduce.html ), why not give it a try,it is simple code:
           PdfDocument doc = new PdfDocument();

String url = "http://www.london2012.com/news/articles/paralympic-torch-relay-route-revealed-1258473.html";
doc.LoadFromHTML(url, false, true, true);
doc.SaveToFile("sample.pdf");


Mahe, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response