Mam następujący kod:nie można znaleźć instalowalnego ISAM
string excelConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\db\suc.xls; Extended Properties=""Excel 12.0;HDR=YES;""";
// Create Connection to Excel Workbook
using (OleDbConnection connection =
new OleDbConnection(excelConnectionString))
{
OleDbCommand command = new OleDbCommand
("Select * FROM [Sheet1$]", connection);
connection.Open();
i pojawia się następujący błąd:
nie znaleźliśmy instalowalnego ISAM.
pod numerem connection.Open()
. Jakieś pomysły ?
możliwe duplikat [System.Data.OleDb.OleDbException: Nie można odnaleźć instalowalnego ISAM] (http://stackoverflow.com/questions/11562267/system-data-oledb-oledbexception-could- not-find-installable-isam) – bummi