如何在Crystal报表中动态传递参数?

时间:2016-10-27 07:05:49

标签: vb.net crystal-reports

我需要知道如何在水晶报告中动态传递参数

 Dim paramField31 As New CrystalDecisions.Shared.ParameterField()
 Dim discreteVal1 As New CrystalDecisions.Shared.ParameterDiscreteValue()
 discreteVal1 = New ParameterDiscreteValue()
 paramField31.ParameterFieldName = "sample"
 discreteVal1.Value = (ds.Tables(0).Rows(2).Item(0))
 paramField31.CurrentValues.Add(discreteVal1)
 paramFields3.Add(paramField31)

0 个答案:

没有答案