cancel
Showing results for 
Search instead for 
Did you mean: 

Disable parameter prompt for Crystal Report 9 using vb.net 2005 win form

Former Member
0 Kudos

Hi,

Does anyone know how to disable parameter prompt for Crystal Report 9 using vb.net 2005 win form?

I looked in internet. There are many such questions in internet, but there is no answer that works.

Any suggestions?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

To disable the parameter prompt, you have to populate the parameters with a value prior to generating the report. Once CR sees that the parameter has data, it will use that data to create the report without prompting the user.

Use the SetParameterValue() method of the ReportDocument class to set the parameter. The first argument is the parameter name and the second is the parameter's value.

Answers (2)

Answers (2)

former_member292966
Active Contributor
0 Kudos

Hi Tet,

You need to set the paramters in your VB app. Any parameters you do not set will get prompted for.

If you are setting them but still getting prompted, make sure you are not using the Refresh method because that will cause the report to prompt for the parameters again. Same as in the Report Designer and you go to refresh the report you get prompted to use the current parameters or to discard them.

Hope this helps,

Brian

steve_norton
Active Participant
0 Kudos

Hello,

The OnDemand forum is for discussions related to the crystalreports.com, Nsite, or Information OnDemand applications.

This is a question specific to crystal reports so I have moved it to a more appropriate forum.

Cheers

Steve