Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Could not find installable ISAM ??

Status
Not open for further replies.

MJB3K

Programmer
Jul 16, 2004
524
GB
Hi, I keep getting this error "Could not find installable ISAM".

What is this error?
Code:
        /// <summary>
        /// Returns a data set of the excel information
        /// </summary>
        /// <returns>DataSet</returns>
        public static DataSet GetExcelInformation()
        {
            // create connection string
            string sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" +
                "Data Source=" + @"test.xls" + ";" +
                "Extended Properties=Excel 8.0; IMEX=1;"; // HDR = YES; "; // IMEX=1;";

            // create a connection to the excel xls
            OleDbConnection objConn = new OleDbConnection(sConnectionString);

            try
            {
                objConn.Open();
            }
            catch (OleDbException exc)
            {
                System.Windows.Forms.MessageBox.Show(exc.Message);

                return null;
            }
...

It catches the error in the try / catch block.

Any ideas??

Regards,

Martin

Computing Design And Services:
 
The error generally means it cannot find the appropriate driver to read the data.

What version of excel are you using?

(some solutions to this are here..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top