Hi, thanks all for responding. I kept getting the error message "the parameter is incorrect". Here is the details. I’m working in VS2005. I have a stored proc that accepts one parameter. I created a schema (dataset file) and dragged and dropped the stored proc on the schema designer. I then went into the report and selected ADO.net as the data source and via the ellipse buttons, navigated to the schema file to use as the data source for the report. In the Field Explorer I can see the stored proc. I mistakenly thought I needed to assign the parameter to the SP thru code by using CrystalDecisions.Shared.ParameterDiscreteValue and CrystalDecisions.Shared.ParameterField, etc. which I did but keep getting the "the parameter is incorrect" error message. I tried using both types of values for the parameter, that is, with the @ sign prefix for the parameter and without but keep getting the same error. I then noticed in the Field Explorer that no parameter was showing so I removed all the CrystalDecisions.Shared.ParameterDiscreteValue & CrystalDecisions.Shared.ParameterField code and just created the dataset via C# code and assigned the dataset as the reports data source and it ran fine.
Therefore, I concluded that if you don’t see any paramters in the Field Explorer, you don’t need to assign them using CrystalDecisions.Shared code.