Solved

SetParameterValue shows prompt

Posted on 2006-06-16
3
3,471 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 70

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 70

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Reports Sub Report 4 93
Crystal Report Grand Total in Main Report from Sub Reports 6 86
Exclude some records from totals 10 63
Crystal reports vb.net 2 60
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 …

726 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