Éric Moreau
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?
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?
ASKER
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER