Click here to Skip to main content
15,896,606 members

Failed to load database information error in crystal reports viewer

shivanand3291 asked:

Open original thread
Hi,
I am currently working with visual studio 2010 and MS access DB. i ahve installed crystal reports 2008. I use windows forms and a crystal reports viewer control in it. On a button click i want to show a report from database in a crystal reports viewer. But i encounter the following error message.

---------------------------
Crystal Reports Viewer
---------------------------
Failed to load database information.
Details: The database connector 'crdb_p2bbnd.dll' could not be loaded. The correct version of the database client for this database type might not be installed.


here is the code

string connetionString = null;
           OleDbConnection cnn;
           DataTable OledbDt = new DataTable("Table Name from the database");
           OleDbDataAdapter OleDbAdapter = new OleDbDataAdapter();
           string sql = null;
           connetionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=XXXXX.mdb;";
           sql = "select * from Table name from the database";
           cnn = new OleDbConnection(connetionString);
           try
           {
               cnn.Open();
               OleDbAdapter = new OleDbDataAdapter(sql,cnn);
               OleDbAdapter.Fill(OledbDt);
               ReportDocument rptDoc = new ReportDocument();
               my rpt file name abc = new my rpt file name();
               abc.SetDataSource(OledbDt);
               crystalReportViewer2.ReportSource = abc;
               crystalReportViewer2.RefreshReport();
               OleDbAdapter.Dispose();
               cnn.Close();
           }
           catch (Exception ex)
           {
               MessageBox.Show(ex.Message,"Error");
           }

       }


i searched my entire system but i coudn't find the dll to be added here. i googled out the error message but got reuslts with there is no such dll. kindly help me out with this issue as soon as possible. Many Thanks in advance
Tags: WebForms, Visual Studio 2010, CrystalReports, OleDb, Microsoft Access

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900