string(21) "{"docs":[],"count":0}" 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 How to add reportviewer control in visual studio 2017 vb .net

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

     

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

    Step 2, Remove the ReportViewer Control that is listed in the toolbox. This is the control with a version of 12.x.

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

    Step 3, Right click in anywhere in the toolbox and then select Choose Items....

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

    Step 4, On the .NET Framework Components, select Browse.

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

    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.

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

    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 [email protected].

    • 已标记为答案 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

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

    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 [email protected].

    • 已标记为答案 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 [email protected].

    • 已标记为答案 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

     

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

    Step 2, Remove the ReportViewer Control that is listed in the toolbox. This is the control with a version of 12.x.

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

    Step 3, Right click in anywhere in the toolbox and then select Choose Items....

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

    Step 4, On the .NET Framework Components, select Browse.

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

    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.

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

    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 [email protected].

    • 已标记为答案 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

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

    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 [email protected].

    • 已标记为答案 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 [email protected].

    • 已标记为答案 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 [email protected].

    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


     

 

相关文章: