I have ssrs report viewer url and tried directly convert to pdf :
If I tried to access it in browser, it did not render to pdf, and parameter not passed. I did something like this in mvc 5 :
public ActionResult GetPdfReport()
{
NetworkCredential nwc = new NetworkCredential("username", "password");
WebClient client = new WebClient();
client.Credentials = nwc;
string reportURL = "http://someIP/Reports_Server/Pages/Report.aspx?ItemPath=%2fReport+Folder%2fReport+Name&Parameter=parametervalue&rs:Command=Render&rs:Format=PDF";
return File(client.DownloadData(reportURL), "application/pdf", "filename.pdf");
}
Anyone any idea?