I need to read and write data from an Excel spreadsheet. Is there a method to finding out how many rows/columns a certain worksheet has using ExcelPackage? I have the following
This is what I do:
To get the array of values on the workbook:
object[,] valueArray = sheet.Cells.GetValue();
to get the range do the following:
int rangeMaxRows = sheet.Dimension.End.Row; int rangeMaxColumns = sheet.Dimension.End.Column;