Now it works only when the file is open. Here is the connection string:
const string oleConStr = "Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=\"Excel 8.0;HDR=No\";Data Source={0}";
like this I open it as standard
var oleConnStr = String.Format(oleConn, fileName); OleDbConnection cn = new OleDbConnection(oleConnStr); cn.Open();
Mistake:
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
The external table has no intended format.