on 10-25-2010 9:04 PM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.