locked
How to pass parameters in sap crystal reports & VS2010 RRS feed

  • Question

  • User1407496128 posted

    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(missed parameter values). Thanks,

    Wednesday, October 17, 2012 7:34 AM

Answers

  • User1786833724 posted

    http://scn.sap.com/thread/1988521

    HTH

    Thanks,

    -Aarsh

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 17, 2012 9:25 PM