Thanks for responding.
I was able to figure out how to set a parameter(s) for the report.
The problem I'm having now is that I'm having intermitent issues with preventing the dialog box from displaying, which asks the user to input the parameter value.
In addition, I have several parameters for which I must set the values for programmatically. Like the aforementioned issue of intermitentancy, occassionaly one or two of the parameter values that were set in code will not display on the report.
For one of the parameters if I remove it from the report, then put it back on the report, run the application, then display the report, the set parameter value displays.
For the other parameter in question, it will not display at all if I try to pass a numeric value to it. And yes, I created the parameter as Number type. The only time this particular parameter seems to work is when I create it a string and "handjam" a string value to be passed to it via code. Even in that situation it display intermitently.
I don't know what's causing this but it's very frustrating to say the least. This is an application which is using WPF, VS2010, C#, and the most recent downloaded version of Crystal Reports for VS2010 from SAP.
The code fragment for how I set the parameter values and kept the "Enter parameter value" dialog box from displaying is as follows:
ReportClass AR = new ReportClass();
AR.SetDataSource(ConvertCollection.ConvertToDataTable(saColl));
crViewer.ViewerCore.ReportSource = AR;
AR.SetParameterValue("ProcessorDetails", SystemInfo.GetFunction1());
AR.SetParameterValue("ProcessorType", SystemInfo.GetFunction2());
AR.SetParameterValue("AvailDrives", SystemInfo.GetFunction3());
AR.SetParameterValue("Browser", SystemInfo.GetFunction4());
AR.SetParameterValue("Username", "John Doe");
AR.SetParameterValue("SystemMemory", SystemInfo.GetFunction5());
When I put the code to set the parameter values BEFORE setting the ReportSource the "Enter parameter value" dialog box would display all the time.
When I put the code to set parameter values AFTER setting the ReportSource the "Enter parameter value" dialog box would display intermitently.
The last two parameters are the one's I'm having an issue with in terms of the value displaying intermitently.
Any assistance that can help me solve this mystery would be much appreciated.
Marlon