R E P O R T V I E W E R C O N T R O L Steps for creating this project: 1. Drag a report viewer control onto the form. The control is in the data section of the tool box. 2. Set the DOCK property of the control to "fill". 3. Using the smart tag of the viewer control, choose New Report then select new datasource from the window that appears on the right side of the screen. You will now be working on a Report Definition Language Page for the Client (RDLC) page. 4. Create a new database connection & datasource using the wizard that we used before in class. 5. Now open the toolbox from the RDLC page and notice it has special choices. Choose Table and drag the table icon to the form. A new template for the table is displayed. 6. Now, drag the field from the database table that appears in the datasource window to the part of the table that says "details". Adjust the column width as desired and change the column header to read what you want. 7. Now go to the main form, and use the smart tag on the report viewer control to define which report to use. 8. Rt. Click on your database and change the "Copy to output folder" property to "Copy if Newer". 9. Run your application then you can play with the RDLC form to get the report to look like you want! Formatting your Report 1. Rt. Click on the gray bar at the top of your report table to see options like adding/deleting columns. 2. Click on the icon at the left of a row and choose properties to view the many options like color, font, and text alignment.