SlimExcelReader 1.0.0

dotnet add package SlimExcelReader --version 1.0.0                
NuGet\Install-Package SlimExcelReader -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SlimExcelReader" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SlimExcelReader --version 1.0.0                
#r "nuget: SlimExcelReader, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SlimExcelReader as a Cake Addin
#addin nuget:?package=SlimExcelReader&version=1.0.0

// Install SlimExcelReader as a Cake Tool
#tool nuget:?package=SlimExcelReader&version=1.0.0                

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");
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 504 6/20/2020