Skip to Content
0
Former Member
Dec 02, 2011 at 07:12 PM

Disabling the Enter Parameter Value dialog box

1212 Views

I'm developing Crystal Reports in a WPF application using CRVS2010

The issues I'm having are the following:

I am attempting to pass parameter values to a report. I have been able to set a several paramater values by using the following syntax:

ReportObject.SetParameterValue("ParameterName1", ParameterValue1);

ReportObject.SetParameterValue("ParameterName2", ParameterValue2);

ReportObject.SetParameterValue("ParameterName3", ParameterValue3);

ReportObject.SetParameterValue("ParameterName4", ParameterValue4);

Issue #1:

Each time I run the application sometimes the report will display with the report data and parameter values; Other times, just before the report displays, it will prompt me to "Enter Parameter Value".

How do I prevent this dialog box from displaying so that the programmed parameter values will display instead?

Issue #2:

When the Refresh button on the Viewer control menu is clicked a dialog box prompts ask if the new parameter values should be used or to use the old parameter values.

How do I prevent this dialog box from displaying and refresh the paramater values?

I know that there is a ReuseParameterWhenRefresh property that's part of the ViewCore class but I'm not sure how to use it to eleviate the issue I'm having on the refresh.

Any help that can be provided with this most urgent matter (on my part of course) would be most appreciated.

Marlon