Data retrieved in the illustrated manner can be wrapped by an ObjectDataSource component, where the
argument can be mapped to a report parameter e.g. Using Parameters with the ObjectDataSource Component
. Then you can pass different values to the method by updating the report parameter through the viewer's ReportSource.Parameters
collection which is mapped by key (Name) to the report's ReportParameters
To use an ObjectDataSource in the Standalone Report Designer, you will need to extend the tool - Extending Report Designer
. The tutorials linked at the bottom elaborate on the settings required by the Standalone Report Designer and the application with the viewer.
If you prefer to set the data at run-time, you will need a custom resolver for the Reporting REST service as reports are processed and resolved on the server where the Reporting REST service is running. Please consider the example here
. Note the the resolver is used frequently on interaction with the report, and initially it is called 2-3 times for registering the viewer, resolving the report and getting a list of parameters.
Other approach for VS reports is to use the report's NeedDataSource event
to supply the data. Running parameters' values can be obtained through the processing report.
I hope this information is helpful.
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?
Telerik Feedback Portal
and vote to affect the priority of the items