开发者

How do I find the extents of my data in an Excel file (.XLSX) using EPPlus?

Given an Excel spreadsheet, how do I find the extents of the data? Is there a method I can call or a property I can check? Do I need to check cell-by-cell for nulls and then row-by-row? There's gotta be an easier way, right?

I just downloaded the EPPlus library this morning so I might 开发者_C百科be overlooking something basic. I also checked the sample project but didn't see anything related to this question in it.

Thanks!


Using the Excel Object Model, you'd use Worksheet.UsedRange for that.

Using EPPlus, you'd use WorkSheet.Dimensions.Start.Row / End.Row / Start.Column / End.Column.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜