当我运行应用程序(x86 - >读取.xlsx)时,我正在使用Windows 10 Home(x64)。
该应用程序只是告诉我
“'Microsoft.ACE.OLEDB.12.0'提供程序未在本地计算机上注册”
Using con As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + xcFileInfo.ToString + ";Extended Properties=Excel 12.0;")
con.Open()
table = con.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
Dim sheetname As String = table.Rows(0)("table_name").ToString
Dim myDA As OleDbDataAdapter = New OleDbDataAdapter("select * from [" + sheetname + "]", con)
myDA.Fill(myTable)
End Using