intente hacerlo como mencionas, pero me aparece este error :
The file could not be uploaded. The following error occured: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
--------------------------------------------------------------------------------
Código:
OleDbConnection Conex = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + pathArchivo + ";Extended Properties=Excel 12.0 Xml; HDR=YES");
OleDbCommand CmdOle = new OleDbCommand();
CmdOle.Connection = Conex;
CmdOle.CommandType = CommandType.Text;
CmdOle.CommandText = "SELECT * FROM [" + "VIN's" + "$A5:V100]";
OleDbDataAdapter AdaptadorOle = new OleDbDataAdapter(CmdOle.CommandText, Conex);
DataTable dtx = new DataTable();
AdaptadorOle.Fill(dtx);
estoy trabajando con visual studio 2012 con un proyecto en framework 3.5
gracias por la ayuda
seguire investigando como solucionar ese error.
saludos.