Problems reading in an Excel file in C#

后端 未结 4 2112
不思量自难忘°
不思量自难忘° 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:13

    SpreadsheetGear for .NET will let you load Excel workbooks from C# and access the underlying cell values or the formatted values in any order no matter how the workbook is laid out or what the types of the cells are.

    You can see live ASP.NET samples here and download the free trial here if you want to try it yourself.

    Disclaimer: I own SpreadsheetGear LLC

提交回复
热议问题