Hi,
about this subject i have read some trhead in this forum but could'nt find a solution for my problem.
Here the problem:
i manage the parameter by the build in Ui for parameter, My parameter is setted as multivalues.
Now i would like to get the values choosen by the user.
Documetation and intellisense, about ReportParameter.value property, says :
"Gets or sets the value of the parameter. Can be an Expression that evaluates to an object, value of the allowed types, or [!:IEnumerable] containing values of the allowed types. "
But ReportParameter.value is an object and does'nt expose an enumerator. In same place i read it is an ArrayList so i tried something like that:
and i get the above error:
Unable to cast object of type 'System.Object[]' to type 'System.Collections.ArrayList'.
No matter what typ of collection i tried with( Ilist,List). I get always a casting error.
So i can retrieve the list of values of a multivalues parameter?
Thanks
about this subject i have read some trhead in this forum but could'nt find a solution for my problem.
Here the problem:
i manage the parameter by the build in Ui for parameter, My parameter is setted as multivalues.
Now i would like to get the values choosen by the user.
Documetation and intellisense, about ReportParameter.value property, says :
"Gets or sets the value of the parameter. Can be an Expression that evaluates to an object, value of the allowed types, or [!:IEnumerable] containing values of the allowed types. "
But ReportParameter.value is an object and does'nt expose an enumerator. In same place i read it is an ArrayList so i tried something like that:
ArrayList kl=
new
ArrayList();
kl =Report.ReportParameters[0].Value;
and i get the above error:
Unable to cast object of type 'System.Object[]' to type 'System.Collections.ArrayList'.
No matter what typ of collection i tried with( Ilist,List). I get always a casting error.
So i can retrieve the list of values of a multivalues parameter?
Thanks