pass multiple values to single parameter in c# crystal reports RRS feed

  • Question

  • i am working on a wpf app where i want to pass (multiple string values) to crystal report single parameter to show multiple values in section3 of crystal reports.I set Allow multiple values to True for parameter. 

    I have tried this but crystal report show only the first string from the stringArray. Here is my code:

        printReceipts obj2 = new printReceipts();

        string[] stringArray = new string[Productlist.Count];

        int i=0;


        foreach (product x in Productlist)

          stringArray[i] = x.product_name;


         obj2.SetParameterValue("productnames", stringArray);

    Thursday, March 7, 2019 5:30 PM