Book Image

Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide

By : Abolfazl Radgoudarzi, Reza Rad
Book Image

Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide

By: Abolfazl Radgoudarzi, Reza Rad

Overview of this book

Table of Contents (19 chapters)
Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  1. Open Win Application, go to the RemoteProcessingMode.cs Windows form, and click on the ReportViewer control.

  2. In the Properties window, change the reportViewer1 name to rvwSales, and change the Modifier setting to Public. This change is because we want to access this ReportViewer from outside of this page.

  3. Also, in the code behind the form, re-mark the line of code in the form's load event handler with double backslashes, as the following code shows:

    public RemoteProcessingMode()
            {
                InitializeComponent();
            }
    
            private void Form1_Load(object sender, EventArgs e)
            {
                 //this.rvwSales.RefreshReport();
            }
  4. Create a new windows form, and name it Filter...