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?
Btw, I am using vs2005 bundle with crystal. Thanks.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);




Reply With Quote