I have seen examples like
Error 1 No overload for method 'Rows' takes '0' arguments
How can I use foreach to deal with the excel rows?
Thanks
var wb = new XLWorkbook(Filename);
var ws = wb.Worksheets.First();
var range = ws.RangeUsed();
foreach(var row in range.Rows())
{
}
The problem is there isn't such overload for Rows(). All overloads require parameters.Error 1 No overload for method 'Rows' takes '0' arguments
How can I use foreach to deal with the excel rows?
Thanks