I am getting an error The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
the code works locally but not remotely. Due to restrictions on remote hosting environment I wonder if the code below can be amended to use NetOffice.Excel.Net40:
OleDbConnection conn;
conn = new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;data source=" + filename + ";Extended Properties=\"Excel 8.0;HDR=NO;IMEX=1;\"");
conn.Open();
var tblSchema = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] { null, null, null, "TABLE" });
Can anyone please help?