Stop Crystal Reports XI Viewer from Prompting for Parameters
Posted on 2007-04-10
I have a Windows App crystal report viewer, I am using the real Crystal Reports XI viewer not the free viewer that is bundled in .NET 2005. NOTE THIS IS NOT THE WEB VIEWER
I have a report that uses two parameters (a date and a user id). I pass these parameters to the report object...
myRpt.Load(reportDir + "UserFloatRec.rpt");
The report displays properly with the correct date and the correct user info based on f.UID
If the REFRESH button is clicked in the viewer, then a popup dialog appears asking for the two parameters to be provided. I have not found any way to force it to stop popping up this dialog box.
I did a huge number of searches on Google and on Crystal Decisions and all I find are references to a parameter reuse setting, but refers only to the Crystal Web viewer. The specified parameter (or anything even close) doesn't appear in the Windows viewer as far as I can tell.
I'm tearing out my hair over this one... if anyone can point me at a fix it would be greatly appreciated.