Solved

SetParameterValue shows prompt

Posted on 2006-06-16
3
3,462 Views
Last Modified: 2012-05-05
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?
0
Comment
Question by:Éric Moreau
  • 2
3 Comments
 
LVL 69

Author Comment

by:Éric Moreau
ID: 16922160
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
 
LVL 69

Author Comment

by:Éric Moreau
ID: 16922745
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
 
LVL 1

Accepted Solution

by:
kodiakbear earned 0 total points
ID: 16923942
Closed, 500 points refunded.
kb
Experts Exchange Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now