我通过搜索谷歌找到了一些方法,但这对我不起作用。这是我的代码:
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;