ExcelLibrary.Core
1.0.0
See the version list below for details.
dotnet add package ExcelLibrary.Core --version 1.0.0
NuGet\Install-Package ExcelLibrary.Core -Version 1.0.0
<PackageReference Include="ExcelLibrary.Core" Version="1.0.0" />
paket add ExcelLibrary.Core --version 1.0.0
#r "nuget: ExcelLibrary.Core, 1.0.0"
// Install ExcelLibrary.Core as a Cake Addin #addin nuget:?package=ExcelLibrary.Core&version=1.0.0 // Install ExcelLibrary.Core as a Cake Tool #tool nuget:?package=ExcelLibrary.Core&version=1.0.0
ExcelLibrary
This is a small C# library made to simplify reading from and writing to Excel workbooks in the Open XML file format (.xlsx). Here's an example to get you started:
Workbook workbook = new Workbook();
workbook.Open("Book1.xlsx");
Sheet sheet = workbook.Sheet("Sheet1");
Row row = sheet.Row(2);
Cell cell = row.Cell(3);
string text = cell.Value;
See the wiki for more examples.
Features
- No dependencies except .NET Framework 4.5. Easy to include in other solutions.
- Built and extendable with LINQ. Most collections in the library (e.g.
Workbook.Sheets
orRow.Cells
) is of typeIEnumerable<T>
, which allows you to use LINQ queries to find exactly what you need. - Respects the visibility of sheets, rows and columns. Set the
IncludeHidden
option totrue
to return hidden objects. - Well-tested. The library is being developed using principles of Test-driven development (TDD). A large set of unit tests verifies that new bugs are not introduced on code changes.
- Well-documented. A software library is only as useful as its documentation.
Limitations
The following things have been considered outside the scope of the project:
- All file formats except
.xslx
. - Formulas
- Formatting properties
The following things are planned but not yet implemented features:
- All write functionality (writing to cells, adding new sheets, adding and deleting rows and columns and so on).
Also, the library will not create new workbooks per se, but the same can be achieved by including a template workbook in your project and copy it whenever you need to create a workbook.
For more on project status, see the Current status page in the wiki.
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 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. |
-
net6.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.