|
-
Apr 16th, 2007, 11:41 PM
#1
Thread Starter
Hyperactive Member
Crystal Report Parameter Fields [Resolved]
Hi to all,
I have a problem that keeps bothering me or it's something that I'm missing a little to this. I have a simple reports that would accept the date range as a Parameter Fields, my problems is even though I've supplied the value for the date range when it shows the Report it keeps asking me to enter a discrete values for Parameter Fields["DateFrom"] and ["DateTo"], or this is something that I am missing?
Code:
ParameterDiscreteValue pdvdtfrom = new ParameterDiscreteValue();
ParameterDiscreteValue pdvdtto = new ParameterDiscreteValue();
ParameterValues dtfrompv = new ParameterValues();
ParameterValues dttopv = new ParameterValues();
pdvdtfrom.Value = DateFrom.ToShortDateString();
pdvdtto.Value = DateTo.ToShortDateString();
dtfrompv.Add(pdvdtfrom);
dttopv.Add(pdvdtto);
reports.availedperiodic av = new reports.availedperiodic();
av.DataDefinition.ParameterFields["DateFrom"].ApplyCurrentValues(dtfrompv);
av.DataDefinition.ParameterFields["DateTo"].ApplyCurrentValues(dttopv);
av.SetDataSource(d);
Btw, I am using vs2005 bundle with crystal. Thanks.
Last edited by fret; Apr 17th, 2007 at 04:06 AM.
-
Apr 17th, 2007, 04:06 AM
#2
Thread Starter
Hyperactive Member
Re: Crystal Report Parameter Fields
Okies, I've solved it. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|