SlimExcelReader 1.0.0
dotnet add package SlimExcelReader --version 1.0.0
NuGet\Install-Package SlimExcelReader -Version 1.0.0
<PackageReference Include="SlimExcelReader" Version="1.0.0" />
paket add SlimExcelReader --version 1.0.0
#r "nuget: SlimExcelReader, 1.0.0"
// 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 | Versions 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. |
-
.NETCoreApp 3.1
- DocumentFormat.OpenXml (>= 2.11.0)
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 |