Another problem with crystal reports thats wildly common. On editing a CR10 (crystal reports version 10) report outwith VS2003 and trying to integrated it again with an application I got an error.
An unhandled exception of type
CrystalDecisions.CrystalReports.Engine.LogOnException; occured in crystaldecisions.crystalreports.engine.dll
Additional information: Log on failed.
I was trying to repoint the crystal database source to another OLE SQL server db connection and this it seems caused the error. When point to the local test server the report was developed it worked fine, but it would not work with another SQL server. Everything looked good, watches in the good suggested that it was getting the correct authenication parameters and I was stuck. So I figured the problem was to do with the server locations. Crystal is very finicky with database changes and can remove all your database fields if your not careful.
I managed to get round the issue or make it a non issue within VS by:
- Open the report in Visual Studio
- Right click and select Database à Set DataBase Location
- Set db to another OLE DB (ADO) : You may have to set this up prior
- Close and exit
This will as it happens do some crystal magic that will allow changes via code to the database location via code.
