今天,我使用这种方式通过stringParameter设置文本框
ReportParameterCollection reportParameters = new ReportParameterCollection();
reportParameters.Add(new ReportParameter("ParameterName", "Value"));
this.reportViewer.LocalReport.SetParameters(reportParameters);
问题是不要使用自动补全功能。因此,如果参数名更改,则构建不会产生任何结果。有更好的(安全)方法吗?
因此,最终不可能做到这一点。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句