We use Reporting Services in an ASP.NET web application. (We have * .rdlc, which is presented to the ReportViewer web element on our page). Our ASPX page contains several report parameters in code:
var parameters = new List<ReportParameter>(); parameters.Add(new ReportParameter("StoreAddress", InvoiceStoreAddress)); parameters.Add(new ReportParameter("LogoURL", InvoiceLogoURL)); parameters.Add(new ReportParameter("StoreName", InvoiceStoreName)); ReportViewer1.LocalReport.SetParameters(parameters);
These are just general parameters that are passed to the report, instead of connecting it to the data source.
We recently upgraded to VS.NET 2010. We updated * .rdlc to the newest version, and also updated the ReportViewer control used by ASP.NET. Everything works as before.
However, now I want to add a new report parameter to my * .rdlc. Usually I right-clicked in the upper left corner and clicked “Report Parameters” to add it. With the new VS.NET, I can not find this parameter anywhere - it’s not even in the report properties.
Where did he go? Do they condemn this feature? How can I pass some general parameters now?
source share