Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Getting Error "Could not find ISAM" need to validate connection string
 

Getting Error "Could not find ISAM" need to validate connection string

Im trying to import a excel sheet into VB 2005i get the annoying "Could not find ISAM". I went through alot of blogs Checked the registry which shows

Win32 = C:\Program Files\Microsoft Office\OFFICE11\msaexp30.dll

Win32old = C:\WINDOWS\system32

I even registered this dll. Still i get this error.

So im thinking it has to be my connection string. My goal is to remove the first row from the excel sheet since it has the header information and causing constraint issues.

Here is my connection string

MyConnection = New System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; " & _
"data source='" & PrmPathExcelFile & " '; " & "Extended Properties=Excel 8.0;HDR=Yes;IMEX=1")

If i remove the extended properties, it will import the excel but like i mention it causes key constraint issues the sql database.

I have office 2003 loaded. Not using access for anthing, whether that is relevant. This is a windows form, not a web application. Very simple import program.

jilan3109  Tuesday, December 04, 2007 5:31 PM

The value of Extended Properties should be in quotes,

& "Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\""
Zhi-Xin Ye  Monday, December 10, 2007 7:28 AM
If you are running this app on a 64bit os you need to compile the app for the x86 version of the framework because there is only a 32bit version of jet. If you are trying to open an excel 2007 spreadsheet (xlsx) use this as the connection string

Data Source=D:\test.xlsx;Provider=Microsoft.ACE.OLEDB.12.0; Extended Properties=Excel 12.0;
Ken Tucker  Tuesday, December 04, 2007 6:15 PM

Will this connection string work with excel 2003 meaning office 2003?. My app is not 64bit. Just a standard 32bit. I am not using office 2007 yet.

jilan3109  Wednesday, December 05, 2007 6:31 AM

The value of Extended Properties should be in quotes,

& "Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\""
Zhi-Xin Ye  Monday, December 10, 2007 7:28 AM
It working..................

Import Excel 2007 from asp.net steps

Installed - AccessDatabaseEngine

connection sting should be like this....

"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\\excel\\ExcelImport_8-2009.xlsx;Extended Properties=\"Excel 12.0 Xml;HDR=NO;IMEX=1;\""


Hurray!!!!!!!!!!!!!!!!!
  • Proposed As Answer bydev77 Monday, August 31, 2009 12:38 PM
  •  
dev77  Monday, August 31, 2009 12:38 PM

You can use google to search for other answers

Custom Search

More Threads

• Changing data types not working
• Validate DataGridView Cells.
• Better way to handle timeout than try/catch?
• Complex SQL statement..
• load combo from stored procedure
• CTRL+C problem in Datagrid forms control
• How to Link DataGridView control with search button and text box
• querybuilder DataGridView syntax
• Editable datagrid
• "rowIndex" does not match "me.rowIndex" on Paint