Tôi đọc nội dung của một tờ excel trong ứng dụng của tôi sử dụng:Reading từ Excel: Lỗi Microsoft.Jet.OLEDB.4.0 trên hệ thống 64 bit
OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + fileName + ";Extended Properties=Excel 8.0");
_myDataSet = new DataSet();
OleDbDataAdapter myCommand = new OleDbDataAdapter(" SELECT * FROM [" + "My Sheet" + "$]", con);
myCommand.Fill(_myDataSet);
con.Close();
này thất bại trong hệ thống 64 bit với các lỗi :
Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine
Cách làm việc này trong máy 64 bit?
Có hoặc bạn có thể sử dụng corflags.exe để chuyển cụm để chạy ở chế độ 32 bit. –