cancel
Showing results for 
Search instead for 
Did you mean: 

Error after upgrading to SP3

Former Member
0 Kudos

I had the following code and it was working using the standard install of Crystal Reports 2008.


' pCrystalReport is a passed in CrystalDecisions.CrystalReports.Engine.ReportDocument object
Dim objDatabaseTable As CrystalDecisions.CrystalReports.Engine.Table

For Each objDatabaseTable In pCrystalReport.Database.Tables
       ' SetDatabaseTableLogOn for table
Next objDatabaseTable

After running the SP3 update it errors on the For Each line of code with:

Unable to cast object of type 'CrystalDecisions.CrystalReports.Engine.Table' to type 'CrystalDecisions.CrystalReports.Engine.Table'.

Is this a known issue?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I found the issue and thought I would share what was...

The report being passed in was coming from another dll. The next time I opened that project I got prompted to upgrade my version of Crystal 2008. I recompiled it, then opened my main project again. Now I got a message that the versions of the Crystal dll's in the 2 projects were incompatible. I manually changed the references in the main project to match the upgraded one and everything is working now.

The part I found odd was I never got the prompt to upgrade my main project.

Answers (0)