Sylvan.Data.Excel 0.2.0-b0003

Prefix Reserved
This is a prerelease version of Sylvan.Data.Excel.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Sylvan.Data.Excel --version 0.2.0-b0003
                    
NuGet\Install-Package Sylvan.Data.Excel -Version 0.2.0-b0003
                    
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="Sylvan.Data.Excel" Version="0.2.0-b0003" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sylvan.Data.Excel" Version="0.2.0-b0003" />
                    
Directory.Packages.props
<PackageReference Include="Sylvan.Data.Excel" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sylvan.Data.Excel --version 0.2.0-b0003
                    
#r "nuget: Sylvan.Data.Excel, 0.2.0-b0003"
                    
#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.
#:package Sylvan.Data.Excel@0.2.0-b0003
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sylvan.Data.Excel&version=0.2.0-b0003&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Sylvan.Data.Excel&version=0.2.0-b0003&prerelease
                    
Install as a Cake Tool

Sylvan.Data.Excel

A cross-platform .NET library for reading Excel data files in .xlsx, .xlsb and .xls formats. Provides readonly, row by row, forward-only access to the data. There is no support for creating or editing Excel files. Provides a familiar API via DbDataReader, which is ideal for accessing rectangular, tabular data sets. The library is a purely managed implementation with no external dependencies.

This library is currently the fastest and lowest allocating library for reading Excel data files in the .NET ecosystem, for all supported formats.

Installing

This library is still relatively immature and you might encounter issues while using it. If you do encounter any bugs, please report an issue in the github repository. Be aware that I will be unlikely to investigate any issue unless an example file can be provided reproducing the issue.

Sylvan.Data.Excel Nuget Package

Install-Package Sylvan.Data.Excel

Basic Usage

using Sylvan.Data.Excel;

// ExcelDataReader derives from System.Data.DbDataReader
// The Create method can open .xls, .xlsx or .xlsb files.
using ExcelDataReader edr = ExcelDataReader.Create("data.xls");

do 
{
	var sheetName = edr.WorksheetName;
	// enumerate rows in current sheet.
	while(edr.Read())
	{
		// iterate cells in row.
		for(int i = 0; i < edr.FieldCount; i++)
		{
			var value = edr.GetString(i);
		}
		// Can use other strongly-typed accessors
		// bool flag = edr.GetBoolean(0);
		// DateTime date = edr.GetDateTime(1);
		// decimal amt = edr.GetDecimal(2);
	}
	// iterates sheets
} while(edr.NextResult());

Exporting Excel data to CSV(s): (using Sylvan.Data.Excel and Sylvan.Data.Csv)

using Sylvan.Data.Excel;
using Sylvan.Data.Csv;

using var edr = ExcelDataReader.Create("data.xls");

do 
{
	var sheetName = edr.WorksheetName;
	using CsvDataWriter cdw = CsvDataWriter.Create("data-" + sheetName + ".csv")
	cdw.Write(edr);
} while(edr.NextResult());
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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Sylvan.Data.Excel:

Package Downloads
GreatUtilities.Infrastructure

Essencial tools to agile development.

DbNetSuiteCore

Interactive data-driven UI components for ASP.Net Core Razor pages and MVC views. Support for MSSQL, MySql, PostgreSql, Oracle, MongoDB, SQLite, JSON, Excel, CSV and the file system

Purcell

一个超高性能的Excel强类型读写映射库。(支持.xls .xlsx .xlsb .csv)

Verify.Sylvan.Data.Excel

Extends Verify (https://github.com/VerifyTests/Verify) to allow verification via Sylvan.Data.Excel https://github.com/MarkPflug/Sylvan.Data.Excel/

Sylvan.AspNetCore.Mvc.Excel

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.30 523 8/20/2025
0.4.29 3,096 7/23/2025
0.4.28 721 7/23/2025
0.4.27 8,392 6/27/2025
0.4.26 14,815 5/5/2025
0.4.26-b0001 4,816 12/3/2024
0.4.25 144,759 8/15/2024
0.4.25-b0001 143 8/14/2024
0.4.24 32,173 6/21/2024
0.4.23 7,807 6/3/2024
0.4.22 10,271 5/13/2024
0.4.21 653 5/5/2024
0.4.20 1,693 4/25/2024
0.4.20-b0001 361 4/1/2024
0.4.19 49,559 11/29/2023
0.4.18 4,328 11/16/2023
0.4.17 9,959 9/26/2023
0.4.17-b0004 174 9/22/2023
0.4.17-b0003 182 9/15/2023
0.4.17-b0002 340 9/12/2023
0.4.17-b0001 180 9/11/2023
0.4.16 7,837 9/8/2023
0.4.15 435 9/5/2023
0.4.14 27,156 8/17/2023
0.4.13 4,285 7/19/2023
0.4.13-b0001 226 7/12/2023
0.4.12 15,044 5/18/2023
0.4.11 6,450 4/25/2023
0.4.10 4,288 3/28/2023
0.4.9 2,912 3/3/2023
0.4.8 34,824 2/23/2023
0.4.7 1,297 2/22/2023
0.4.6 1,081 2/16/2023
0.4.6-b0001 212 2/10/2023
0.4.5 3,024 1/28/2023
0.4.4 1,762 1/18/2023
0.4.3 44,004 12/7/2022
0.4.2 983 11/25/2022
0.4.1 701 11/17/2022
0.4.0 7,973 11/2/2022
0.3.4 675 11/2/2022
0.3.3 7,079 9/12/2022
0.3.2 928 9/2/2022
0.3.1 1,275 9/1/2022
0.3.0 1,259 8/12/2022
0.2.3 620 8/10/2022
0.2.2 564 8/9/2022
0.2.1 885 7/18/2022
0.2.0 1,327 6/24/2022
0.2.0-b0004 246 6/23/2022
0.2.0-b0003 257 6/22/2022
0.2.0-b0002 272 6/21/2022
0.2.0-b0001 276 6/18/2022
0.1.12 638 6/16/2022
0.1.11 623 6/15/2022
0.1.11-b0006 288 6/6/2022
0.1.11-b0005 2,170 5/10/2022
0.1.11-b0004 262 5/2/2022
0.1.11-b0003 297 3/8/2022
0.1.11-b0002 261 2/28/2022
0.1.11-b0001 244 2/23/2022
0.1.10 4,638 2/22/2022
0.1.9 616 2/21/2022
0.1.8 608 2/20/2022
0.1.7 719 1/22/2022
0.1.6 1,465 1/13/2022
0.1.4 1,763 11/28/2021
0.1.3 509 10/18/2021
0.1.2 577 10/8/2021
0.1.1 523 10/5/2021
0.1.0 716 10/4/2021