Some times I get the Missing Parameters error when trying to export a Crystal Report, I had everything set up correctly but the problem was that I set the report data source AFTER setting the parameter values, when I switched them the error went away.
This example causes the error (Report only has 1 parameter ("Cycle") )
report.SetParameterValue("Cycle", "20");
report.SetDataSource(dsApplicants);
This example fixes the code above
report.SetDataSource(dsApplicants);
report.SetParameterValue("Cycle", "20");
No comments:
Post a Comment
No Spam Please