This is what I did and it worked well for me:
1- Installed Microsoft Rdlc Report Designer for Visual Studio
2- Opened Visual Studio and created a new project using Visual Basic > Report Application template. (You can also search for it using top right search box)
3- From the warning dialog clicked Trust
4- Cancelled Report Wizard (I just didn't want to create report initially, you can create.)
5- Rebuild the solution.
You are all set. You can add a new Report and design it in VS and show it in ReportViewer
. If you open Form1
you can see a ReportViewer
there.
To add it to toolbox, you can click on Choose Items and then Browse your solution directory and from the NuGet package folders go to report viewer package folder and select Microsoft.ReportViewer.WinForms.dll
.
For more information on how to add report viewer control to a form see Integrating Reporting Services Using ReportViewer Controls - Get Started.