I am using a reportviewer control on my web form and I have created a parameter in my report. I can pass a hardcoded parameter and it works for one values at a time, but I want to send an array of values for the same parameter. For example if I have 5 different fleets of aircaft I might want to see 1,2 or all of the fleet in this report. I am kind of new to SQL reporting any help would be great.
Thanks in advance
you can pass an array but you need to do some processing in the RS designer..under the Data tab. or you can do it all in the stored proc it self by setting up the parameter as varchar and doing the splitting inside..|||Thanks I will look into RS Designer Data Tab. Is there some sample code available the performs this particular function.
|||check out my blog..there is an article about parsing an array..there is also a link to a better article..it involves using UDFs. It is prbly a better and more efficient approach from the stored proc itself.|||
Could I use a parameter collection to pass an Array of Parameters to a report, if so how would I code that?
Thanks
|||prios did you get this working? If so, could you post your solution? I would also be interested in seeing how you passed a single parameter using the report viewer.Thanks.|||
I found a solution...
http://odetocode.com/Articles/128.aspx
 
No comments:
Post a Comment