You must add the ReportViewer control to your project to
be able to present the custom report in Microsoft Visual Studio.
To add the ReportViewer control to your project:
- If the Visual Studio toolbox is not visible, click .
- In the toolbox, scroll to the Data section
and look for the ReportViewer control. If it
is not in the Data section, look for the MicrosoftReportViewer control
in the Reporting section. If you see neither
control, complete the following steps:
- Right-click anywhere within the toolbox and select Choose
Items.
- On the .NET Framework Components tab,
select the Microsoft.Reporting.WinForms version
of the ReportViewer control and click OK.
If you see two versions, you can select either one.
- In the toolbox, select the ReportViewer control
or the MicrosoftReportViewer control and drag
it onto the default form.
Tip: You can also
complete this step by double-clicking ReportViewer.
Visual Studio places the control onto the form for you.
- In the ReportViewer Tasks dialog,
select Dock in parent container to resize the
ReportViewer control to fit the form.
Attention: If
the ReportViewer Tasks dialog is not presented
automatically, click Smart Tag at the upper
right of the ReportViewer control. If you cannot
see the Smart Tag button, expand the Design pane
to present the entire ReportViewer control.