Crystal Reports 10 with VS 2010 on Windows 10

  • Thread starter Thread starter Stephen1951
  • Start date Start date
S

Stephen1951

Guest
I'm currently moving to a new laptop where I work. Our network engineer installed VS 2010. My old laptop is running Windows 7 and we are using Crystal Reports 10 with VS 2010 to develop reports and it works fine. The new laptop is using Windows 10. On my new laptop I first noticed that SAP BusinessObjects was missing. So I copied the entire folder and sub folders from my old laptop. Our reports use the following DLL references:

CrystalDecisions.CrystalReports.Engine

CrystalDecisions.ReportSource

CrystalDecisions.Shared

Once I copied the SAP BusinessObjects the above DLL references were found and everything looked good and the program compiled. When I run the program, the code behind, which is auto-generated fails here:

Public Sub New()
MyBase.New
End Sub

The error I'm getting is The type initializer for CrystalDecisions.CrystalReports.Engine.ReportDocument threw an exception.

Since this is coming from the auto-generated report code and not nothing we wrote, I don't understand why this is happening. Other than the operating system everything regarding the report program is the same. In the compile options I'm using x86 for the Target CPU and .NET Framework 4. I've also tried x64 and AnyCPU to no avail. These are the same options we're using on the Windows 7 environment. I have scoured the Internet trying to find an answer and have been coming up empty. Any help would be greatly appreciated.

Continue reading...
 
Back
Top