I am using Visual Studie 2005 and SQL Server 2005. I trying to run some ssrs reports that I created on the server. Can I create paramters at run-time in my code even though I did not create the parameters in the report. Here is my sample code:
ReportNum = Test.Left(cboReportList.Text, 9);
reportViewer1.ServerReport.ReportServerUrl = new Uri ("http://simsamwqs04.rsc.humad.com/reportserver");
reportViewer1.ServerReport.ReportPath = "/Claims/Report Project1/" + ReportNum;
//ReportViewer1.ServerReport.ReportPath = "/Report Project State/Report1";
ReportParameter[] Params = new ReportParameter[1];
Params[0] = new ReportParameter("fundctr", txtCenter.Text);
reportViewer1.ServerReport.SetParameters(Params);
reportViewer1.ServerReport.Refresh();