How to add reportviewer control in visual studio 2017 vb .net

https://social.msdn.microsoft.com/Forums/windows/zh-cn/f72d92a1-e7f8-4212-a0d7-8fa7c898658d/how-to-add-reportviewer-control-in-visual-studio-2017-vb-net?forum=winformsdesigner

How to add reportviewer control in visual studio 2017 vb .net RRS feed

Windows Forms

 > 

Windows Forms Designer

  • 问题

答案

  •  

    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


     

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值