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
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
mohammad sadiqPosted Mar 2, 2016, 1:39 PM
mohammad sadiqPosted Mar 2, 2016, 1:32 PM
mohammad sadiqPosted Mar 2, 2016, 1:32 PM
mohammad sadiqPosted Mar 2, 2016, 1:32 PM
Juan HinesPosted Aug 12, 2015, 7:03 AM
Manoj BhoirPosted Jul 31, 2015, 11:43 AM
{
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");
}