Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Error instantiating control that inherits from WinForms CrystalReportViewer

$
0
0

I'm seeing the following error when testing a report after converting to CR for VS2010. I've traced this down to a reproducable case where one extends the existing CrystalReportViewer class and then tries to instantiate an instance of that subclass as shown below.

 

public class MyWinFormsCRViewer : CrystalDecisions.Windows.Forms.CrystalReportViewer

{

}

 

When instantiating the above viewer you will see the following exception.

 

System.ArgumentException was unhandled

  Message=Resource 'DefaultAnimation.gif' cannot be found in class 'CrystalReportsViewer.MyWinFormsCRViewer'.

  Source=System.Drawing

  StackTrace:

       at System.Drawing.Bitmap..ctor(Type type, String resource)

       at CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer()

       at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()

       at CrystalReportsViewer.MyWinFormsCRViewer..ctor() ...

 

This issue is my last roadblock in all of the possible ways I've tried to work around using the new CR for VS 2010 release. Unfortunately at every turn there is an issue preventing us from using this release.

 

Other blocking issues:

 


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>