






















The report parameter 'param1' is read-only and cannot be modified. (rsReadOnlyReportParameter)
Friday, April 06, 2007 2:52 AM
hey guys..
I'm trying to get the report that I need to be filtered by a parameter value (named Param1)
I created a parameter in the data tab and tried to pass a value from my Web application to the report services.. now my report have that textbox that prompts me to enter the filtering value for the report I want.. everything works fine till this point..
now I have another webpage that has a report viewer and a textbox for the user input the value they want.. and pass it to the report.. and I'm using the following code to pass the value to the report I made earlier..
Dim par(0) As Microsoft.Reporting.WebForms.ReportParameter
par(0) =
New Microsoft.Reporting.WebForms.ReportParameter("paramSiteCode", TextBox1.Text.ToString)
ReportViewer1.ServerReport.SetParameters(par)
ReportViewer1.ServerReport.Refresh()
however.. now I'm getting an error.. "The report parameter 'paramSiteCode' is read-only and cannot be modified. (rsReadOnlyReportParameter)"
what am I missing here? I've been thru the help and forums.. and the code should work.. or so I hope it would.. thanks in advance..
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。