Friends, I have an exception when importing Excel;
[error]
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine
[Code]
string conStr = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties=""Excel 12.0;HDR={1};TypeGuessRows=0;ImportMixedTypes=Text;Imex=1;""";
conStr = String.Format(conStr, pathFile, "Yes");
OleDbConnection connExcel = new OleDbConnection(conStr);
OleDbCommand cmdExcel = new OleDbCommand();
OleDbDataAdapter oda = new OleDbDataAdapter();
DataTable dt = new DataTable();
cmdExcel.Connection = connExcel;
connExcel.Open(); //explodi o erro aqui