SpreadSheetTasks 0.3.2
dotnet add package SpreadSheetTasks --version 0.3.2
NuGet\Install-Package SpreadSheetTasks -Version 0.3.2
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="SpreadSheetTasks" Version="0.3.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SpreadSheetTasks --version 0.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SpreadSheetTasks, 0.3.2"
#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 SpreadSheetTasks as a Cake Addin #addin nuget:?package=SpreadSheetTasks&version=0.3.2 // Install SpreadSheetTasks as a Cake Tool #tool nuget:?package=SpreadSheetTasks&version=0.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SpreadSheetTasks
The .NET library for fast reading and writing Excel files (.xlsx, .xlsb). Some methods/ideas based on great libraries :
- https://github.com/MarkPflug/Sylvan.Data.Excel
- https://github.com/MarkPflug/Sylvan
- https://github.com/ExcelDataReader/ExcelDataReader
Installation
https://www.nuget.org/packages/SpreadSheetTasks/
Install-Package SpreadSheetTasks
dotnet add package SpreadSheetTasks
Usage
Read
using (XlsxOrXlsbReadOrEdit excelFile = new XlsxOrXlsbReadOrEdit())
{
excelFile.Open("file.xlsx");
excelFile.ActualSheetName = "sheet1";
object[] row = null;
while (excelFile.Read())
{
row ??= new object[excelFile.FieldCount];
excelFile.GetValues(row);
}
}
Write
using (XlsbWriter xlsx = new XlsbWriter("file.xlsb"))
{
xlsx.AddSheet("sheetName");
xlsx.WriteSheet(dataReader);
}
Benchamarks and more
XLSB Read
Method | FileName | Mean | Error | StdDev | Gen0 | Gen1 | Gen2 | Allocated |
---|---|---|---|---|---|---|---|---|
'SpreadSheetTasks - XLSB Read - v1' | 200kFile.xlsb | 117.29 ms | 1.907 ms | 1.784 ms | 3400.0000 | 2800.0000 | 1400.0000 | 68.49 MB |
'SpreadSheetTasks - XLSB Read - v2' | 200kFile.xlsb | 138.62 ms | 2.752 ms | 2.826 ms | 3000.0000 | 2000.0000 | 1000.0000 | 49.03 MB |
'Sylvan.Data.Excel - XLSB Read' | 200kFile.xlsb | 147.70 ms | 1.693 ms | 1.500 ms | 3000.0000 | 2500.0000 | 1500.0000 | 50.82 MB |
'SpreadSheetTasks - XLSB Read - v1' | 65K_R(...).xlsb [21] | 60.25 ms | 0.504 ms | 0.447 ms | 1555.5556 | 777.7778 | 777.7778 | 28.83 MB |
'SpreadSheetTasks - XLSB Read - v2' | 65K_R(...).xlsb [21] | 75.96 ms | 0.346 ms | 0.323 ms | 666.6667 | - | - | 13.66 MB |
'Sylvan.Data.Excel - XLSB Read' | 65K_R(...).xlsb [21] | 90.80 ms | 0.641 ms | 0.535 ms | 1000.0000 | - | - | 23.16 MB |
XLSB Write
Method | ReaderType | Mean | Error | StdDev | Gen0 | Allocated |
---|---|---|---|---|---|---|
'SpreadSheetTasks - XLSB Write' | GENERAL | 178.8 ms | 1.25 ms | 1.11 ms | 500.0000 | 30.57 MB |
XlsbSylvanWrite | GENERAL | 233.3 ms | 1.14 ms | 1.01 ms | - | 36.75 MB |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 is compatible. 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. net9.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
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 |
---|---|---|
0.3.2 | 96 | 10/23/2024 |
0.3.1 | 141 | 8/25/2024 |
0.3.0 | 188 | 5/12/2024 |
0.2.17 | 219 | 2/16/2024 |
0.2.16 | 111 | 2/15/2024 |
0.2.14 | 203 | 1/13/2024 |
0.2.13 | 148 | 1/6/2024 |
0.2.12 | 213 | 11/25/2023 |
0.2.11 | 164 | 11/4/2023 |
0.2.10 | 151 | 11/4/2023 |
0.2.9 | 128 | 11/4/2023 |
0.2.8 | 138 | 9/26/2023 |
0.2.7 | 144 | 9/19/2023 |
0.2.6 | 143 | 9/18/2023 |
0.2.5 | 142 | 9/16/2023 |
0.2.4 | 401 | 3/5/2023 |
0.2.3 | 622 | 12/1/2022 |
0.2.2 | 449 | 10/22/2022 |
0.2.1 | 450 | 8/9/2022 |
0.2.0 | 412 | 8/7/2022 |
0.1.2 | 540 | 3/21/2022 |
0.1.1 | 351 | 12/3/2021 |
0.1.0 | 331 | 11/9/2021 |
0.0.4 | 427 | 10/23/2021 |
0.0.3 | 432 | 10/17/2021 |
0.0.2 | 347 | 9/19/2021 |
0.0.1 | 327 | 9/18/2021 |
Performance improvements, Csv writer preview