This is a migrated thread and some comments may be shown as answers.

Silverlight and parameterized queries ?

2 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
LE DREAU Steeve
Top achievements
Rank 1
LE DREAU Steeve asked on 10 Mar 2010, 11:38 AM
Hi,

I'm looking for adding a parameterized query into my report. I'm currently in a Silverlight 3 project and cannot play with my Viewer.report property like in the videos because the silverlight report viewer has a string report property instead of a report type property.

My question is quite simple :
My application needs to set a parameter to my report generation to filter some stuff. How can I pass a value to the reporting service to make my report generating with the user selection parameter ?

I know that report processing is in server side but if we can't pass some parameters from a silverlight app to the reporting service I really don't know what we would be able to do with Telerik Reporting.

I've also tried to see if IReportingService would be a solution to my problem but unfortunately I didn't found any example about how to use it.

Thanks

Regards,
Steeve

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 15 Mar 2010, 09:35 AM
Hello COLIN Thierry,

As my colleague had explained in the following blog post to specify a parameter value you have to use the RenderBegin event of the ReportViewer control . The parameter values can be set through the ParameterValues property of the RenderBegin event argument.

Best wishes,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
LE DREAU Steeve
Top achievements
Rank 1
answered on 15 Mar 2010, 11:51 AM
Hi,

Thanks for your answer, it's the good solution.
In addition to this, I would like to explain that we have to set parameters into the report too, because specifying parameters only in the event will not work. I had to specify them in the parameters of my report at design time.

Regards,

Steeve
Tags
General Discussions
Asked by
LE DREAU Steeve
Top achievements
Rank 1
Answers by
Peter
Telerik team
LE DREAU Steeve
Top achievements
Rank 1
Share this question
or