Skip to content

If you need to read cells (cells only!) from a large excel file without taking up GBs of RAM, use this

License

Notifications You must be signed in to change notification settings

johnrey1/slim-excel-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlimExcelReader

Function

Read a cell string value (no formula value support currently) from a specified cell, on a specified sheet, in an Excel xlsx document

Why another library?

I needed to read cell values out of a large (>50MB) excel file from within an Azure function. I tried 3 or 4 popular openxml based libraries The libraries either:

  • failed to open the file (parse / stream exceptions)
  • Caused memory usage to soar over 1GB and, subsequently, caused Azure function timeouts

Directly using the openxml library was clunky as well

However, I had to use openxml directly in the end, to keep memory usage low, and process time snappy.

Hopefully someone else finds this wrapper helpful!

Example

SlimExcelReader.ExcelReader reader = new ExcelReader("my.xlsx");
reader.OpenExcelReader();
reader.SheetName = "My Sheet";
var cellValue = reader.GetValue("A1");

About

If you need to read cells (cells only!) from a large excel file without taking up GBs of RAM, use this

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages