I want ro read my excel file. It reads file in a nice way. It gets the row count using this code
var package = new ExcelPackage(filename)
var worksheet = package.Workbook.Worksheets[1];
int rowCount = worksheet.Dimension.Rows;
It works fine.But my issue is initially in my excel file it has 10 row count. After that i delete some rows for example i deleted 5 rows.Now this code return to only 5.But it doesn't produce the count 5. It also takes the count of empty rows in excel file. How to overcome this issue