Category / Section
How to change data source for a report using the parameter
Published:
Updated:
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.