Post Author: robarahz
CA Forum: .NET
I just upgraded from Visual Studio 2003 to Visual Studio 2008 and am fighting through the issues with Crystal Reports and the Crystal Reports Viewer.
I am programmatically setting the Report Parameters because I don't want to prompt the user for them. This is the line of code:
report.SetParameterValue("ReportNickname", "MyReportNickName");
This was fine in VS 2003, but now the viewer comes back empty except for an error message saying the report parameters are missing.
Any ideas??
Thanks for any help.
-robert
Post Author: robarahz
CA Forum: .NET
SOLVED.
The problem was the order of operations. Previously, I would set the parameter and THEN set the report data source. This worked in VS 2003, but not in VS 2008 (and probably not VS 2005). So I changed the code to do report.SetDataSource() first, THEN do report.SetParameterValue().
Hope that helps someone.
Add a comment