views:

54

answers:

1

Hi,

I am using the ReportViewer control to show my server report in my WinForm application. I set report parameters like this:

List<ReportParameter> parameterValues = new List<ReportParameter>();
...
parameterValues.Add(new ReportParameter("parameter name", "parameter value"));
...
myReportViewerControl.ServerReport.SetParameters(parameterValues);

I have a "CompanyName" parameter and I don't want to set this parameter. Maybe it is set for the first report load, but the second time I want to set it as unset. I want to clear the value.

I couldn't find any solution to clear parameter values.

How can I handle this problem?

Thank you.