Reading from Excel: Microsoft.Jet.OLEDB.4.0 error on 64 bit systems

前端 未结 4 1623
醉酒成梦
醉酒成梦 2021-02-09 17:11

I am reading the contents of an excel sheet in my application using:

 OleDbConnection con = new OleDbConnection(\"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"         


        
4条回答
  •  不思量自难忘°
    2021-02-09 17:26

    Microsoft.Jet.OLEDB doesn't have 64bit version, only 32bit. Compile your application as 32bit (Platform target: x86 in build option).

提交回复
热议问题