borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Setting report Paper size inside CR)Next Topic (Setting paper size by Inch or centemeter) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : [HELP] Seagate Crystal Reports: Database Error
Poster Message
edison7
Level: Trainee

Registered: 08-06-2005
Posts: 2

icon [HELP] Seagate Crystal Reports: Database Error

I get the error messages as following when i try to open a crystal report. I'm using VB. Please help.

Seagate Crystal Reports: Database Error
----------------------------------------
Can not initialize OLE.


Seagate Crystal Reports: Database Error
----------------------------------------
Can not create DAO DBEngine.


Seagate Crystal Reports: Database Error
----------------------------------------
Error opening file.
File could not be opened: "Report" at file location "Report"

08-06-2005 at 05:19 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: [HELP] Seagate Crystal Reports: Database Error

I assume you are getting this error after distributing program on client's machine. The error is most probably raised because you didnt distribute some database files (like dao360.dll for example). So, you should first find info on their site on what files are needed to be distributed in order CR to work. Look exactly for your version of CR, cause dependancy files differ from version to version.

____________________________
If you find the answer helpful, please mark this topic as solved.

08-06-2005 at 09:49 AM
View Profile Send Email to User Show All Posts | Quote Reply
edison7
Level: Trainee

Registered: 08-06-2005
Posts: 2
icon Re: [HELP] Seagate Crystal Reports: Database Error

quote:
Goran wrote:
I assume you are getting this error after distributing program on client's machine. The error is most probably raised because you didnt distribute some database files (like dao360.dll for example). So, you should first find info on their site on what files are needed to be distributed in order CR to work. Look exactly for your version of CR, cause dependancy files differ from version to version.



Yes, i get these errors after distributing program on client's machine. I copied and registered the dao360.dll and solved the previous 2 errors. Now the only left one error message: Error opening file.File could not be opened: "Report" at file location "Report"
I tried so hard but still failed to solve this error. Any ideas? Thx.


08-06-2005 at 11:33 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: [HELP] Seagate Crystal Reports: Database Error

Well, it is hard to say what exactly is causing this error. Could be the connection string is pointing to wrong path for database (since usually client's database is not at the same location as it was on development machine). Also, could be you are still missing some dependancy files. If for example, you install crystal reports on clients machine, and application works fine, then you will know it is some CR file(s) you are missing. If still doesnt work, then it is the problem in connection string. Make sure you are poitning to new database location

For Each tbl In rpt.Database.Tables
    tbl.SetLogOnInfo App.Path & "\dbName.mdb"
Next tbl


where rpt is CRAXDRT.Report, and tbl is CRAXDRT.DatabaseTable

____________________________
If you find the answer helpful, please mark this topic as solved.

08-06-2005 at 02:15 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : [HELP] Seagate Crystal Reports: Database Error
Previous Topic (Setting report Paper size inside CR)Next Topic (Setting paper size by Inch or centemeter) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder