我通过搜索谷歌找到了一些方法,但它对我不起作用。这是我的代码:
thongkedonhang rpt = new thongkedonhang();
ParameterFields pfields = new ParameterFields();
ParameterField pfieldSTAFF = new ParameterField();
ParameterDiscreteValue disValSTAFF = new ParameterDiscreteValue();
disValSTAFF.Value = tungay;
pfieldSTAFF.Name = "d1";
pfieldSTAFF.CurrentValues.Add(disValSTAFF);
pfields.Add(pfieldSTAFF);
crpt_thongkedondh.ParameterFieldInfo = pfields;
答案 0 :(得分:0)
thongkedonhang rpt = new thongkedonhang();
thongkedonhang .SetParameterValue("ParameterName", disValSTAFF);
代替ParameterName
设置{{1p>的值}