Print Page | Close Window

Cannot load CR at run time [C# 2008]

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2022
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=7665
Printed Date: 03 May 2025 at 2:31am


Topic: Cannot load CR at run time [C# 2008]
Posted By: Andy
Subject: Cannot load CR at run time [C# 2008]
Date Posted: 11 Sep 2009 at 9:50am
Hi,

I have a CR that connects to its datasource [access database] at design time.

I can create a pdf file from the report at design time: no worries there.


At run time, I get the err:

Failed to load database information
crdb_dao.dll couldn't be loaded
Error in file.. temp\...\crTest.rpt
Failed to load database information.


Thanks


More details


Both of these code snippets produce the same error:

ReportDocument reportDocument = new ReportDocument();
reportDocument.Load("crNames.rpt");
reportDocument.SetDataSource("dbTest.mdb");
reportDocument.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "c:\\crTest.pdf"); // err on this line


crTest cr = new crTest();
cr.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "c:\test.pdf"); // err on this line


Any ideas?




-------------
Thanks

Andy



Replies:
Posted By: Andy
Date Posted: 11 Sep 2009 at 9:11pm
Additional information:

XP64 SP2


-------------
Thanks

Andy


Posted By: DannyTiong
Date Posted: 13 Sep 2009 at 9:16am
Hi Andy,
 
The web link below report similar issues but different Crdb_adoplus.dll instead of crdb_dao.dll.
 
 
http://www.c-sharpcorner.com/UploadFile/mahesh/crdb_adoplus08152006112827AM/crdb_adoplus.aspx - http://www.c-sharpcorner.com/UploadFile/mahesh/crdb_adoplus08152006112827AM/crdb_adoplus.aspx



Print Page | Close Window