I have a report with a simple parameter (string parameter) and I'm setting it with this code:
ParameterFieldDefinition parameter =
_reportDocument.DataDefinition.ParameterFields["Filtro"];
CrystalDecisions.Shared.ParameterValues currentValues = parameter.CurrentValues;
currentValues.Clear();
CrystalDecisions.Shared.ParameterDiscreteValue newValue =
new CrystalDecisions.Shared.ParameterDiscreteValue(); newValue.Value = "Value to Set";
currentValues.Add(newValue);
parameter.ApplyCurrentValues(currentValues);
But when I run the report, the program show an automatic window asking for the value of the parameter. Obviusly, if I set the parameter programatically, I don't need this windows.
Any idea? Something diferente with VS2003?, because the same example in VS2003 works perfect.
Thanks in advance,