I'm trying to use NPOI to read large excel files. However I have only been able to find examples in which an entire workbook is read into memory at once.
using var stream = new FileStream(src, FileMode.Open);
XSSFWorkbook wb = new(stream);
The memory footprint is quite large when doing this. (8Mb .xls => 1gb of memory when debugging in VS)
Does anyone know if it's possible to use NPOI to ideally read a sheet line by line? Failing that, how to load one single sheet at a time?
Lastly if anyone has any recommendations for other excel file readers (other than using OLEDB), I'd like to hear them!