Problems reading in an Excel file in C#

后端 未结 4 2080
不思量自难忘°
不思量自难忘° 2021-01-23 07:57

I\'m reading an Excel file with OLDB Connection using this code

        var connectionString = string.Format(\"Provider=Microsoft.Jet.OLEDB.4.0; data source={0};         


        
4条回答
  •  攒了一身酷
    2021-01-23 08:12

    Just make sure that your excel file is not open. Close your excel application & then start your program.

    Sunil

提交回复
热议问题