You can access it like
var data = worksheet.Cells[0,0].Value;
So you need to define the index at cell level, not at value level.
Since ExcelWorksheet.Cells.Value
is of type object
, you first need to cast to object[,]
if you are trying to access on value level:
var data = ((object[,])worksheet.Cells.Value)[0,0];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.