Time for action – changing a report configuration with a ReportViewer Object through code behind
In this section, we will explore some .NET object library functions and properties of the ReportViewer, and we will change the report parameters based on these functions. Perform the following steps:
- Open
Win Application
, go to theRemoteProcessingMode.cs
Windows form, and click on the ReportViewer control. - In the Properties window, change the
reportViewer1
name torvwSales
, and change the Modifier setting to Public. This change is because we want to access this ReportViewer from outside of this page. - Also, in the code behind the form, re-mark the line ...
Get Microsoft SQL Server 2014 Business Intelligence Development: Beginner’s Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.