locked
Passing Multiple parameter value in Crystal report RRS feed

  • Question

  • Hi

    I ahve problem to pass multiple value in a single parameter in crystal report.

    I have 1 combobox . In combobox  fields like ( All, 2000,2001,2002,2003,2004,2005,2006)

    If i select year is 2000 then report generated and value given by only 2000 year related,

    but if i select "ALL" then it should be generated report with all years...

    But i have no idea..so please help .me...

    so please tell me Selection Formula and Code in C#,,.... :)

    ===============

    ParameterFields myParams = new ParameterFields();

    ParameterField myParam = new ParameterField();

    ParameterDiscreteValue myDiscreteValue = new ParameterDiscreteValue();

    myParam.ParameterFieldName = "ParamYear";

    myDiscreteValue.Value = strYear;

    myParam.CurrentValues.Add(myDiscreteValue);

    myParams.Add(myParam);

    for (int i = 0; i < paramArrayList.Count; i++)

    {

    // Reuse myDiscreteValue, and assign multiple vals

    myDiscreteValue = new ParameterDiscreteValue();

    myDiscreteValue.Value = paramArrayList[i];

    myParam.CurrentValues.Add(myDiscreteValue);

    }

    myParams.Add(myParam);


    ==========

    thanks
    Friday, October 24, 2008 6:10 PM

Answers