Multi-value SSRS report parameters from C#

If you are calling SSRS reports from C# and setting the parameters programatically you will sooner or later come across a case where you have to assign a parameter with multiple values. This problem proved quite vexing but I have found the (rather simple) solution so here it is:

string[] foobarValues = new string[] { "foo", "bar", "rnd" };

//Create the list of parameters that will be passed to the report
List reportParameters = new List();

//Set up the multi-value parameter and add the foobarValues array to it
ReportParameter multiValueParam = new ReportParameter("foobar");

//Finally we add the multi-value parameter to our main parameter list

//Set the ReportViewers parameters to the list of ReportParameters we just created

And that is it. Plain and simple. :)


Now read this

SSIS Component Error

Today I encountered a puzzling problem while running an SSIS package that contained BPC components. The packages kept failing at the BPC components with the following error: The contact information for this task is “” I hunted everywhere... Continue →