i am trying to interface ssrs reporting services from my asp.net web application. I am creating the URL dynamically based on the search parameters, and trying to fetch the report, but its not being fetched.
//report server name + reports folder name
strRedirectURL = ConfigurationManager.AppSettings["ReportServerURL"];
//report name
strRedirectURL = strRedirectURL + "ExportSearch";
//report rendering constant
strRedirectURL = strRedirectURL + "&rs:Command=Render";
//parameters
strRedirectURL = strRedirectURL + strParamString;
//show/hide parameters on report
strRedirectURL = strRedirectURL + "&rc:parameters=false&rs:ClearSession=true";
//report format
strRedirectURL = strRedirectURL + "&rs:Format=Excel";
System.Diagnostics.Process objProcess = new System.Diagnostics.Process();
objProcess.StartInfo.FileName = "iexplore.exe";
objProcess.StartInfo.Arguments = strRedirectURL;
objProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
objProcess.Start();
objProcess.Close();
I executed the above code on my local, and it worked fine. But when deployed on server, to test, its not working. The created URL looks something like this,
I checked the URL and it works fine when tried to launch from separate browser window. When application tries to open this URL, it doesn't open.