|
-
September 30th, 2016, 01:46 AM
#1
cant find the Microsoft.ACE.OLEDB.16, neither the Microsoft.ACE.OLEDB.12
I dont get the Microsoft.ACE.OLEDB.16 driver.
Even Office 2016(x32 version) is istalled on Win7 and a Win10 system. Both of them are x64 systems.
But Win10 does not have it, neither Win7.
I changed than the net project to ‘AnyCpu’, but no matter if target is 64 or 32, cant find the driver.
Considering this threads,
https://stackoverflow.com/questions/...-on-the-system
at least I excpect to get the Microsoft.ACE.OLEDB.12 driver.
I have no Idea whats left here.
If Office is a 64 version, than I would have expect this situation, but not on with a x32.
Code:
public static bool GetMsACEDriver()
{
OleDbEnumerator enumerator = new OleDbEnumerator();
DataTable table = enumerator.GetElements();
bool bNameFound = false;
bool bCLSIDFound = false;
foreach (DataRow row in table.Rows)
{
foreach (DataColumn col in table.Columns)
{
if ((col.ColumnName.Contains("SOURCES_NAME")) && (row[col].ToString().Contains("Microsoft.ACE.OLEDB.16 ")))
bNameFound = true;
}
}
if (bNameFound)
{
return true;
}
else
{
return false;
}
}
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|