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?
LVL 71
Éric MoreauSenior .Net ConsultantAsked:
Who is Participating?
 
kodiakbearConnect With a Mentor Commented:
Closed, 500 points refunded.
kb
Experts Exchange Moderator
0
 
Éric MoreauSenior .Net ConsultantAuthor Commented:
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).
0
 
Éric MoreauSenior .Net ConsultantAuthor Commented:
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.
0
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.

All Courses

From novice to tech pro — start learning today.