dcsimg
Results 1 to 19 of 19

Thread: ReportViewer in VB2019

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2019
    Posts
    25

    ReportViewer in VB2019

    I have searched extensively and tried many options to install and use RV in my application. Alas, can't get it to work.

    Could someone please comment on how to do this in VB2019.

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,752

    Re: ReportViewer in VB2019

    I believe that you install it into your project as a NuGet package.

    https://www.nuget.org/packages/Micro...trol.Winforms/
    https://www.nuget.org/packages/Micro...trol.Webforms/

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2019
    Posts
    25

    Re: ReportViewer in VB2019

    Quote Originally Posted by jmcilhinney View Post
    I believe that you install it into your project as a NuGet package.

    https://www.nuget.org/packages/Micro...trol.Winforms/
    Yeah. I tried all that. I see the ReportViewer in the toolbox. However, when dropping into the form nothing happens. Supposed to have tasks but none are available.

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,752

    Re: ReportViewer in VB2019

    Quote Originally Posted by PMHA View Post
    Yeah. I tried all that. I see the ReportViewer in the toolbox. However, when dropping into the form nothing happens. Supposed to have tasks but none are available.
    That's probably something you ought to have specified in the first place. Please read this:

    https://docs.microsoft.com/en-us/sql...ql-server-2017

    and do as it instructs and then explain EXACTLY where and how what you experience differs from that description. You might even consider a screenshot to illustrate the issue.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jul 2019
    Posts
    25

    Re: ReportViewer in VB2019

    I followed all the installation instructions I could find. I added ReportViewer to the Toolbox. However, this never shows up:

    Name:  RP.png
Views: 60
Size:  20.4 KB

  6. #6
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,752

    Re: ReportViewer in VB2019

    I just created a VB WinForms Application project in VS 2019 and installed the Microsoft.ReportingServices.ReportViewerControl.WinForms NuGet package. A 'Microsoft SQL Server' section was added to the top of the Toolbox and it contained a ReportViewer item. If that didn't happen for you, I don't know what to tell you.

  7. #7
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,752

    Re: ReportViewer in VB2019

    Hmmm... interestingly, when I doubled-clicked that item in the Toolbox, it was added to the component tray in the designer but there was no visible UI on the form itself. Not sure what's up with that. You can select that component and configure it in the Properties window. Maybe it only shows up if you select a report. Really not sure as I've never used a WinForms ReportViewer control before.

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Jul 2019
    Posts
    25

    Re: ReportViewer in VB2019

    Yep. That's exactly what I experienced. Doing more research on this.

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Jul 2019
    Posts
    25

    Re: ReportViewer in VB2019

    Found this. However, I don't see the same items as shown in Step 4.

    https://csveda.com/mini-projects/cre...ort-in-vb-net/

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Jul 2019
    Posts
    25

    Re: ReportViewer in VB2019

    Found this. However, I don't see the same items as shown in Step 4.

    https://csveda.com/mini-projects/cre...ort-in-vb-net/

  11. #11
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,752

    Re: ReportViewer in VB2019

    Looks like you need to install this extension into VS and that works with the NuGet package installed into your project:

    https://marketplace.visualstudio.com...alStudio-18001

    This may not be of interest to you but there's an extension for server-side SSRS too:

    https://marketplace.visualstudio.com...orVisualStudio

  12. #12

    Thread Starter
    Junior Member
    Join Date
    Jul 2019
    Posts
    25

    Re: ReportViewer in VB2019

    Quote Originally Posted by jmcilhinney View Post
    Looks like you need to install this extension into VS and that works with the NuGet package installed into your project:

    https://marketplace.visualstudio.com...alStudio-18001

    This may not be of interest to you but there's an extension for server-side SSRS too:

    https://marketplace.visualstudio.com...orVisualStudio
    I did indeed download that and used NuGET to install. I am not using SQLSERVER so SSRS ins not necessary.

  13. #13
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,752

    Re: ReportViewer in VB2019

    Quote Originally Posted by PMHA View Post
    I did indeed download that and used NuGET to install.
    I'm not sure whether you're saying that you did that and now it's working or that you had already done that so it didn't help.
    Quote Originally Posted by PMHA View Post
    I am not using SQLSERVER so SSRS ins not necessary.
    If you're using the Report Viewer then you're using SSRS because it's part of it. The RDLC files that contain client reports are also part of SSRS. Server reports require SQL Server but client reports are part of your application and you can get their data from anywhere.

  14. #14

    Thread Starter
    Junior Member
    Join Date
    Jul 2019
    Posts
    25

    Re: ReportViewer in VB2019

    Sorry. Early here in US.

    I did the VISX installation. In the instructions I found (link shown earlier), it clearly shows object in the tool box called 'REPORTING'.

    The instructions furthermore show that one can use a query based on data sources. The app that I am creating uses MSACCESS since that is what my client requested.

    So the question is: How to make a client side report with RDLC. The instructionsshow dropping a ReportViewer on the form, and voila a designer shows up.

    I can't get any of that.

  15. #15
    Member
    Join Date
    Jan 2006
    Posts
    56

    Re: ReportViewer in VB2019

    PMHA,

    Have you had any success in this?
    I too am having the exact same issue with VS Community 2019 Version 16.2.0.
    I added the report viewer and report maker from the Nuget Package Manager.
    I have added, deleted, added, etc the ReportViewer tool to the tool bar to no effect.
    I drag and drop the ReportViewer onto my Win Form and nothing happens.
    I do not get any dialog box where I can select a report, or create a report.

    If anyone out there has any idea whatsoever on what the issue may be, or even better, on how to resolve this issue, it would benefit many users.

  16. #16
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,752

    Re: ReportViewer in VB2019

    I thought that I had posted to this thread again but apparently not, so sorry about that. It appears that there is a bug in recent versions of that NuGet package - some missing assemblies I think. Versions 150.1358.0 and 150.1357.0 both seem broken but version 150.900.148 worked for me. There is also a NuGet package named Corrected.Microsoft.ReportingServices.ReportViewerControl.WinForms that appears to claim to address the problem but, when I installed version 150.1358.0 of that, it still didn't display a ReportViewer control on my form.

  17. #17
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,752

    Re: ReportViewer in VB2019

    Note that changing versions in an existing project seems to cause an odd InvalidCastException when trying to add a control to a form. It seems that the DLL for the old version is cached and they are incompatible. I found that opening the folder 'C:\Users\<your user name>\AppData\Local\Microsoft\VisualStudio\16.0_f0a72fd3\ProjectAssemblies' and deleting the subfolders there allowed me to add an instance to a form and new copies of the required DLLs were cached. You may need to close VS in order to release the lock on one or more of the files/folders.

  18. #18

    Thread Starter
    Junior Member
    Join Date
    Jul 2019
    Posts
    25

    Re: ReportViewer in VB2019

    Did you re-install the ReportViewer? It's no longer anywhere on my system?

  19. #19
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,752

    Re: ReportViewer in VB2019

    Quote Originally Posted by PMHA View Post
    Did you re-install the ReportViewer? It's no longer anywhere on my system?
    It's not really supposed to be on your system. You add it to each project as a NuGet package. You need to install the extension into VS and then install the NuGet package into your project. If you have already installed the latest version of the NuGet package then do as I did, i.e. delete the ReportViewer component from any forms you've added it to, install the older version of the NuGet package, close VS, delete those cache folders, reopen the solution, add the control to your form from the Toolbox. That worked for me. Note that the control is in the Microsoft SQL Server section of the Toolbox, but that doesn't mean that you have to use a SQL Server database.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width