Вот моя старая строка:
Код: Выделить всё
strConnectionString = string.Format(
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};" +
"Extended Properties=\"Excel 12.0 Xml;HDR=YES;IMEX=1\";",
strFile);
Код: Выделить всё
strConnectionString = string.Format(
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};" +
"Extended Properties=\"Excel 12.0 Xml;HDR=YES;IMEX=1\";",
strFile);