How to add reportviewer control in visual studio 2017 vb .net ![RRS feed](https://i-blog.csdnimg.cn/blog_migrate/f56546fb611007f8dc1014a914a0368a.gif)
>
-
问题
答案
-
Hi SissyRam,
>>How to add reportviewer control in visual studio 2017 vb .net
VS 2017 support the version 14.0, please refer to the following step to add the latest reportviewer(14 version):
Step 1, run the following command in the Package Manager Console:
Install-Package Microsoft.ReportingServices.ReportViewerControl.Winforms -Version 140.340.80
Step 2, Remove the ReportViewer Control that is listed in the toolbox. This is the control with a version of 12.x.
Step 3, Right click in anywhere in the toolbox and then select Choose Items....
Step 4, On the .NET Framework Components, select Browse.
Step 5, Select the Microsoft.ReportViewer.WinForms.dll from the NuGet package you installed.
The NuGet package will be installed in the solution directory of your project. The path to the dll will be similar to the following:
{Solution Directory}\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.{version}\lib\net40
Step 6, The new control should display within the toolbox.
Hope this helps!
Best Regards,
Stanly
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已标记为答案 SissyRam 2017年12月19日 9:38
2017年12月19日 8:59
-
Hi,
If the method above still can not add the report viewer control to the toolbox, then try to drag the dll directly to the toolbox:
1, open Windows explorer and navigate to the DLL
2, drag the DLL and drop it on Visual Studio in the Toolbox, exactly where you want your components to appear
Best Regards,
Stanly
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已标记为答案 SissyRam 2017年12月19日 9:38
2017年12月19日 9:09
-
Hi SissyRam,
Try to do the above steps with a new project under a new folder.
Regards,
Stanly
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已标记为答案 SissyRam 2017年12月19日 9:32
2017年12月19日 9:23
-
Thank a lot bro it worked
{Solution Directory}
This means working project folder
C:\Users\xxxx\xxxx\repos\WindowsApp4
For example this the project location means
Get into following path:
C:\Users\xxxx\xxxx\repos\WindowsApp4\packages
C:\Users\xxxx\xxxx\repos\WindowsApp4\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80
C:\Users\xxxx\xxxx\repos\WindowsApp4\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80\lib
C:\Users\xxxx\xxxx\repos\WindowsApp4\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80\lib\net40
Under this folder Following is the dll.
Microsoft.ReportViewer.WinForms.dll
As shown above need to drag and drop above mentioned tool box
Now it is added
- 已标记为答案 SissyRam 2017年12月19日 9:38
2017年12月19日 9:38
-
Hi SissyRam,
>>How to add reportviewer control in visual studio 2017 vb .net
VS 2017 support the version 14.0, please refer to the following step to add the latest reportviewer(14 version):
Step 1, run the following command in the Package Manager Console:
Install-Package Microsoft.ReportingServices.ReportViewerControl.Winforms -Version 140.340.80
Step 2, Remove the ReportViewer Control that is listed in the toolbox. This is the control with a version of 12.x.
Step 3, Right click in anywhere in the toolbox and then select Choose Items....
Step 4, On the .NET Framework Components, select Browse.
Step 5, Select the Microsoft.ReportViewer.WinForms.dll from the NuGet package you installed.
The NuGet package will be installed in the solution directory of your project. The path to the dll will be similar to the following:
{Solution Directory}\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.{version}\lib\net40
Step 6, The new control should display within the toolbox.
Hope this helps!
Best Regards,
Stanly
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已标记为答案 SissyRam 2017年12月19日 9:38
2017年12月19日 8:59
-
Hi,
If the method above still can not add the report viewer control to the toolbox, then try to drag the dll directly to the toolbox:
1, open Windows explorer and navigate to the DLL
2, drag the DLL and drop it on Visual Studio in the Toolbox, exactly where you want your components to appear
Best Regards,
Stanly
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已标记为答案 SissyRam 2017年12月19日 9:38
2017年12月19日 9:09
-
{Solution Directory}\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.{version}\lib\net40
I cant get into this path, kindly help me
While choosing item I am getting version 9.0 only
Kindly let me know how to get version 14.0
Note: I have ran comment promt for install 14.0. Installed successfully
- 已编辑 SissyRam 2017年12月19日 9:20
2017年12月19日 9:18
-
Hi SissyRam,
Try to do the above steps with a new project under a new folder.
Regards,
Stanly
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已标记为答案 SissyRam 2017年12月19日 9:32
2017年12月19日 9:23
-
Thank a lot bro it worked
{Solution Directory}
This means working project folder
C:\Users\xxxx\xxxx\repos\WindowsApp4
For example this the project location means
Get into following path:
C:\Users\xxxx\xxxx\repos\WindowsApp4\packages
C:\Users\xxxx\xxxx\repos\WindowsApp4\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80
C:\Users\xxxx\xxxx\repos\WindowsApp4\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80\lib
C:\Users\xxxx\xxxx\repos\WindowsApp4\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80\lib\net40
Under this folder Following is the dll.
Microsoft.ReportViewer.WinForms.dll
As shown above need to drag and drop above mentioned tool box
Now it is added
- 已标记为答案 SissyRam 2017年12月19日 9:38
2017年12月19日 9:38
-
Hi
You are welcome, SissyRam, Glad to help you :)
Regards,
Stanly
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.2017年12月19日 9:44
-
Hello,
It worked the best. Especially the part for removing existing report viewer first from toolbox
Thank you
2018年8月22日 13:55
-
It is totally worked great... Thank you
2019年2月12日 22:15
-
V15 is the latest as off 3/19
2019年3月14日 13:32