I have an error condition explained below that I can prevent from happening by first opening an ArcMap dialog box before I run the code. I can open any Arcmap dialog "File Save...", customize>extensions... anything in the arcmap menus will prevent this error. Why?
I have references to the Crystal Reports 2008 components in an ArcGIS 10 desktop application. I have one line of VB code that runs from a simple desktop button:
Dim cReport as New CrystalDecisions.CrystalReports.Engine.ReportDocument
it produces the error:
The type initializer for "CrystalDecisions.CrystalReports.Engine.ReportDocument" Threw an exception
This also runs fine if I don't launch it from within ArcGIS. Does anyone have a clue what might be going on.
-Sean