Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

VSTools Add-on displaying form with reportviewer freezes

(0) ShareShare
ReportReport
Posted on by 85

I am developing a VSTools ( C# .Net 3.5) add-on for GP in which at the end of my add-on I display a form with a ReportViewer linked to an RDLC report. When the form appears the ReportViewer freezes the form. The report does nothing except display the underlying datasource.

The question: is there anything special about displaying a form with a ReportViewer tied to an embedded RDLC as an add-on .dll within Dynamics GP??

I've commented most of my add-on so that it basically does nothing but display the report form. I've tried using as a report datasource a single class with a List<> accessor (a Business Object approach) with hard-coded data and I've tried a report datasource using a database connection (complete with associated TableAdapters and such.)

I can take the meat of my add-on, put it into a test app, and display the simple report with no freezing.

This isn't a case of not being able to display because of missing .dll files (such as a common search can find about when Integration Manager upgraded to using the ReportViewer.WinForms .dll).

 

 

*This post is locked for comments

  • Bill Vassas Profile Picture
    Bill Vassas 85 on at
    Re: VSTools Add-on displaying form with reportviewer freezes

    Just tried doing that by copying the following dlls into both the Addins and the root GP folder (but still freezes):

      Microsoft.ReportViewer.Common.dll

      Microsoft.ReportViewer.ProcessingObjectModel.dll

      Microsoft.ReportViewer.WinForms.dll

      Microsoft.ReportViewer.DataVisualization.dll

    Right now I don't have the time to try on another machine or start with a clean code project for a pure test of this.

  • Suggested answer
    Andrew John Dean Profile Picture
    Andrew John Dean 1,337 on at
    Re: VSTools Add-on displaying form with reportviewer freezes

    I eventually overcame the reporting problem by copying the Microsoft.ReportViewer DLLs into the root GP directory. On my development machine, I only needed the DLLs in the Addins directory but on the customers machine, they needed to be installed in the root.

  • Bill Vassas Profile Picture
    Bill Vassas 85 on at
    Re: VSTools Add-on displaying form with reportviewer freezes

    No Andrew,

    I basically abandoned the ReportViewer approach and instead went for a simple text output (monotyped formatting and such to make it look halfway descent). It's a shame too, I even tried using Crystal Reports as well and I got the same behavior: run it within GP as part of dynamics.exe and it freezes when displayed; run it as a stand alone app in it's own process and the report object renders.

  • Andrew John Dean Profile Picture
    Andrew John Dean 1,337 on at
    Re: VSTools Add-on displaying form with reportviewer freezes

    One more thing to note. The report runs fine on my development machine but not on the production server. The production server has the Report Viewer runtime distributable installed.

  • Andrew John Dean Profile Picture
    Andrew John Dean 1,337 on at
    Re: VSTools Add-on displaying form with reportviewer freezes

    Hi Bill

    Did you find a resolution to this problem. I am running into similar issues.

    Regards

    Andrew Dean

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans