| Author: Avadhesh Kumar Tiwari 05 Sep 2008 | Member Level: Silver | Rating: Points: 3 |
using CrystalDecisions.Shared;
The code of below needs to be written after the ReportSource porperty of the crystalReportViewer has been set and before the control to which belongs finishes being loaded.In this case, we are adding two parameters
ParameterField f1 = this.crystalReportViewer1.ParameterFieldInfo[0]; ParameterField f2 = this.crystalReportViewer1.ParameterFieldInfo[1]; ParameterDiscreteValue pdv1 = new ParameterDiscreteValue(); ParameterDiscreteValue pdv2 = new ParameterDiscreteValue(); pdv1.Value = "parameter1"; pdv2.Value = "parameter2"; f1.CurrentValues.Add(pdv1); f2.CurrentValues.Add(pdv2);
hope this will help you ...
|
| Author: Frank Malola 05 Sep 2008 | Member Level: Gold | Rating: Points: 1 |
Hi,
I am not using Crystal Report but Microsoft reporting service, would this code still work?
|