How to pass parameters in sap crystal reports & VS2010.

Posted by Sampath1750 under ASP.NET on 10/17/2012 | Points: 10 | Views : 2222 | Status : [Member] | Replies : 0
Hi,
How to pass parameters in sap crystal reports & VS2010.
I passed parameter like below

1. Report.SetParameterValue("ExpiryDate", Convert.ToDateTime(Session["ExpiryDate"].ToString()));
or
2. ParameterDiscreteValue paramDV = new ParameterDiscreteValue();
paramDV.Value = Convert.ToDateTime(Session["ExpiryDate"]);
NPR.ParameterFields["@ExpiryDate"].CurrentValues.Clear();
NPR.ParameterFields["@ExpiryDate"].DefaultValues.Clear();
NPR.ParameterFields["@ExpiryDate"].CurrentValues.Add(paramDV);

but in both ways i got error(missing parameter values).

Thanks,




Responses

(No response found.)

Login to post response