Quantcast
Viewing all articles
Browse latest Browse all 3636

BUG! CR 13 VerifyDatabase not using updated credentials

Hi,

I recently updated my Visual Studio project from CR2008 to the latest (CR 13) and now all my reports fail to log on.

 

The thing is that my reports all refer to a no longer existent database. What I have done successfully with CR2008 is that I set the connection info like this:

 

            foreach (CrystalDecisions.CrystalReports.Engine.Table table in ThisReport.Database.Tables)

            {

                table.LogOnInfo.ConnectionInfo = myConnectionInfo;

                table.ApplyLogOnInfo(table.LogOnInfo);

            }

 

And now I also added:

 

          ThisReport.SetDatabaseLogon(DatabaseLogin, DatabasePassword, DatabaseServerName, DatabaseName);

 

 

However, the VerifyDatabase() now fails!!

 

If I manually open up my report and change the connection settings to an existing database and save the report I can use the above code.

 

Note that the report will execute on the database provided in my code above, it is just the actual verification that is being performed on the connection info stored in the report.

 

As far as I can see, this is a bug!

 

Please help me!


Viewing all articles
Browse latest Browse all 3636

Trending Articles



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