After many hours of technical support with Crystal Decisions here are the actions to correct the "Missing Parameter field current value" error:
1. There is an upgrade bug when converting a report from Crystal 8.5 to the Crystal Reports 9.0 Visual Studio .NET 2003. This error affects reports that have embedded stored procedures when trying to do an export. You will receive the error when doing the .Export() method off the report object. The workaround is to re-create the report in 9.0.
2. If you have embedded stored procedures in your report; even if your stored procedure contains defaults for your parameters, you must always pass something into the Crystal Reports. This is for ALL parameters, even the ones that are not used!
3. You must do a refresh on the report. The refresh, re-initializes the report parameters AND the connection information. You must do the refresh in these steps.
A. rpt.Load("MyReport.rpt")
B. rpt.Refresh()
C. rpt.SetDatabaseLogon("UserName","Password");
D. Set the connection info for each table in the report.
E. Set the datasource for the report (if applicable).
F. Set the report parameters.
G. Do an Export or set the viewer control source to the report.
4. You must set the parameters on the report before doing an export!
5. If you close the report before doing an Export or setting the source of the viewer control you will also get this error.
|