Accessing Excel Spreadsheet with C# occasionally returns blank value for some cells

后端 未结 10 2171
無奈伤痛
無奈伤痛 2020-12-11 02:43

I need to access an excel spreadsheet and insert the data from the spreadsheet into a SQL Database. However the Primary Keys are mixed, most are numeric and some are alpha-n

10条回答
  •  半阙折子戏
    2020-12-11 03:08

    The {} means this is some sort of empty object and not a string. When you hover over the object you should be able to see its type. Likewise, when you use quickwatch to view dr["..."] you should see the object type. What type is the object you receive?

提交回复
热议问题