Programatically setting default value and still prompt for parameter
- From: "Bill Faulk" <billf@xxxxxxxxxxxxx>
- Date: Mon, 26 Sep 2005 16:20:06 -0600
When defining the parameter in the report designer there is a "default
value" and it is this value that I wish to set before running the report.
I'm using Crystal Reports XI which no longer defaults data parameters to the
current date. I'd like to programatically set the default value without
setting a Current Value. If you set the parameter's current value then it
won't be prompted for; this isn't what I want.
Using ParameterField.DefaultValues.Add(ParameterDiscreteValue) will add a
value to the list of values that the users can select from the parameter
value list box but it doesn't populate the default value itself.
If there's some way to set the current value and still prompt for a value
then that would work for me. I haven't found any way to do that yet either.
Setting ParameterField.CurrentValue.Add(x) will cause the parameter to be
skipped on the parameter dialog even if HasCurrentValue is subsequently set
to false.
Any insights are appreciated!
Please reply via the newsgroup.
Bill Faulk
.
- Prev by Date: CR XI Tif image background color
- Next by Date: Re: How to view Crystal Reports Version 10 on Crystal Enterprise Folde
- Previous by thread: CR XI Tif image background color
- Next by thread: quantity, number and format.
- Index(es):
Relevant Pages
|