ConnectionString := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\temp\test.xls;Extended Properties="Excel 8.0;HDR=YES";'; OLEConnect := OLEConnect.OleDbConnection(ConnectionString); OLEConnect.Open();...
DataTable sheets = con.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] {null, null, null, "TABLE"});but in Dynamics the method table not avalible
OLEConnect.Close();
Comments
that's a pretty cool idea. I don't know how to solve it, but I hope you solve it, as I would like to try this also. I can see quite a few uses for this. Especially for automation projects where Excel is not installed.
Also a question. Do you think this would be faster than using excel automations? I have a lot of cases where clients have huge spread sheets that take quite some time to import or export.
you can alternatively use following code to retrieve the sheet/tablenames:
http://vjeko.com/blog/excel-interoperab ... n-nav-2013
this was meant as alternative for the missing to do something like in c/al, if you don't know the names of the included worksheets.
the example retrieves the name of the 1st sheet.