How to create report PDF using ASP.Net MVC5
I want to create report , so i want to know mvc code that can allow me to be able to save information into a PDF file ,so that any one can be able to download my PDF file
6 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Manoj BhoirRank #599 · 4K pointsPosted Jul 31, 2015, 7:43 AM EDT
If you are using SQL Server Reporting Service (SSRS) for Reporting then try this code : public ActionResult GetPdfReport() { NetworkCredential nwc = new NetworkCredential("username", "password"); WebClient client = new WebClient(); client.Credentials = nwc; string reportURL = "http://someIp/ReportServer/?%2fReportProjectName/ReportName&rs:Command=Render&rs:Format=PDF"; return File(client.DownloadData(reportURL), "application/pdf"); }Juan Hines18 pointsPosted Aug 12, 2015, 3:03 AM EDT
mohammad sadiq80 pointsPosted Mar 2, 2016, 8:32 AM EST
mohammad sadiq80 pointsPosted Mar 2, 2016, 8:32 AM EST
mohammad sadiq80 pointsPosted Mar 2, 2016, 8:32 AM EST
mohammad sadiq80 pointsPosted Mar 2, 2016, 8:39 AM EST