3
I have a connection string with excel, but it is only the . xlsx and is giving this error
Serverversion = 'connExcel.Serverversion' threw an Exception of type 'System.Invalidoperationexception'
I need a connection with both at the same time, because I can have the 2 file types at the time of reading.
string strExcelConn = "Provider=Microsoft.ACE.OLEDB.12.0;" +
"Data Source = " + txtArquivo.Text + ";" + "Extend Properties=Excel 12.0 xml; HDR = YES";
This string I’m using is from connectionstring.com, I’m confused that it’s not working with me. I’ll see this Standar and post the experience.
– Leandro Díaz