Articles in this section
Category / Section

How to change data source for a report using the parameter


A report can be previewed with different data sources by changing the data source value using a parameter. For this, you need to have a parameter in the report that specifies the data source name and database name and also you need to set the data source connection string as expression using the parameter value as reference, as shown in the following image.


You can refer here to know how to pass the parameter for Report Viewer from your applications.

Was this article useful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment