I am using ssrs webservices with c#. Works great until I try to pass in multiple parameters then I get:
"Default value or value provided for the report parameter 'X' is not a valid value."
I am at a loss - I have the split function in my stored procedure and can pass in the values like '01/05/2010,01/062010' etc no problems. I have tried wrapping the comma seperated string with single quotes and without, tried adding them as seperate inputs with no luck same response. Report works fine from SSRS interface but not when calling it using web services. Any assistance is greatly appreciated - I have done numerous web searches and found no answers.
Below is the c# code snipet:
//set up the parameters
List<ParameterValue> input = new List<ParameterValue>();
ParameterValue pval = new ParameterValue();
pval.Name = param.Name;
pval.Value = "'" + paramsSelected + "'";
input.Add(pval);
//call the report
service.Render(
ReportName,
"PDF",
null,
null,
input.ToArray(),
null,
null,
out encoding,
out mime,
out outParams,
out outWarn,
out outStreams);
"Default value or value provided for the report parameter 'X' is not a valid value."
I am at a loss - I have the split function in my stored procedure and can pass in the values like '01/05/2010,01/062010' etc no problems. I have tried wrapping the comma seperated string with single quotes and without, tried adding them as seperate inputs with no luck same response. Report works fine from SSRS interface but not when calling it using web services. Any assistance is greatly appreciated - I have done numerous web searches and found no answers.
Below is the c# code snipet:
//set up the parameters
List<ParameterValue> input = new List<ParameterValue>();
ParameterValue pval = new ParameterValue();
pval.Name = param.Name;
pval.Value = "'" + paramsSelected + "'";
input.Add(pval);
//call the report
service.Render(
ReportName,
"PDF",
null,
null,
input.ToArray(),
null,
null,
out encoding,
out mime,
out outParams,
out outWarn,
out outStreams);