Click here to Skip to main content
13,868,406 members
Rate this:
Please Sign up or sign in to vote.
See more: , +
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);
               OleDbAdapter = new OleDbDataAdapter(sql,cnn);
               ReportDocument rptDoc = new ReportDocument();
               my rpt file name abc = new my rpt file name();
               crystalReportViewer2.ReportSource = abc;
           catch (Exception ex)


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

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190214.1 | Last Updated 20 Oct 2013
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100