Stop Crystal Reports XI Viewer from Prompting for Parameters

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");
myRpt.SetParameterValue("ReportDate", DateTime.Now);
myRpt.SetParameterValue("UserID", f.UID);

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.
dbtothAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kurt ReinhardtSr. Business Intelligence Consultant/ArchitectCommented:
This is the way the viewer works.  When you select refresh, the viewer  attempts to run the report again.  Since the end user is now attempting to run the report manually rather than from a page or form, the parameters aren't passed in to the report again.  As such, the user is prompted for the parameters.

Why would you want the end user to be able to click the refresh button and pass in the same parameters as the original report?  Is the data changing over the course of a few minutes and you want to allow the users to pull in the updated data?

~Kurt
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mlmccCommented:
Kurt is accurate.  That is the way the viewer works.
I am not familiar with that viewer so this may not apply.

One way to handle this may be to disable/hide the refresh button and supply one of your own.  You can then supply your own button on the viewer and control its behavior.

mlmcc
0
adriankohwsCommented:
I encho Mr.mlmcc. Disable it if you are not using it.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.