How to add to the tools the reportviewer tab in Visual Studio 2017 community?

2

Dear.

What the question says. I'm following a C # tutorial where they use Visual Studio 2012, where in the toolbar on the left, they have a whole category called "Report Generator" where the reportviewer tool is.

This category I do not have in visual studio 2017 community.

How can I add or install it?

Greetings

Danilo

    
asked by Danilo Bocaz Gandarillas 15.06.2017 в 00:22
source

1 answer

2

I self-answer, since I found the solution.

With the open solution you must enter:

  

Tools --- > Nugget package ---- > Package manage console

there copy and paste the following

  

Install-Package   Microsoft.ReportingServices.ReportViewerControl.WinForms -Pre

and press enter.

Once this is done, it will only be necessary to add the option to the toolbox or toolbox.

For this we go to some form in design mode. Select the toolbox and right click on choose item ... Once inside we give browse and we must locate the dll that we just generated. This must be inside the folder of your solution.

Project_address \ packages \ Microsoft.ReportingServices.ReportViewerControl.Winforms. {version} \ lib \ net40

you must select the dll that is called:

Microsoft.ReportViewer.WinForms.dll

With that you will already have the option in visual studio 2017

I hope it serves you.

    
answered by 15.06.2017 в 04:00