Link to home
Start Free TrialLog in
Avatar of Éric Moreau
Éric MoreauFlag for Canada

asked on

SetParameterValue shows prompt

I use the version of Crystal Reports that comes with VS2005.

I use the SetParameterValue to set the value of a boolean parameter and I always get a prompt to provide a value when I request the report.

I was using the exact same code in VB.Net 2003 and I was not getting any prompt.

How could I get my report without any prompt?
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

ASKER

The funny thing I just discover is that if I create a completely new report, the SetParameterValue method is working correctly (without displaying any prompts).
I found it.

I was calling SetDataSource method after having set the called the SetParameterValue method. This resets the HasValue properties of ParameterField to False.

The same sequence was working perfectly in the version that is bundled with VB.Net 2003.
ASKER CERTIFIED SOLUTION
Avatar of kodiakbear
kodiakbear

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial