ClosedXML

ClosedXML is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.

Github stars Tracking Chart

ClosedXML

Release NuGet Badge .NET Framework .NET Standard Build status
Open Source Helpers

? Download unstable CI build

ClosedXML is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.

For more information see the wiki

Install ClosedXML via NuGet

If you want to include ClosedXML in your project, you can install it directly from NuGet

To install ClosedXML, run the following command in the Package Manager Console

PM> Install-Package ClosedXML

What can you do with this?

ClosedXML allows you to create Excel files without the Excel application. The typical example is creating Excel reports on a web server.

Example:

using (var workbook = new XLWorkbook())
{
    var worksheet = workbook.Worksheets.Add("Sample Sheet");
    worksheet.Cell("A1").Value = "Hello World!";
    worksheet.Cell("A2").FormulaA1 = "=MID(A1, 7, 5)";
    workbook.SaveAs("HelloWorld.xlsx");
}

Extensions

Be sure to check out our ClosedXML extension projects

Developer guidelines

The OpenXML specification is a large and complicated beast. In order for ClosedXML, the wrapper around OpenXML, to support all the features, we rely on community contributions. Before opening an issue to request a new feature, we'd like to urge you to try to implement it yourself and log a pull request.

Please read the full developer guidelines.

Credits

Overview

Name With OwnerClosedXML/ClosedXML
Primary LanguageC#
Program languageC# (Language Count: 3)
Platform
License:MIT License
Release Count54
Last Release Name0.102.2 (Posted on )
First Release Name0.80.1 (Posted on )
Created At2016-08-27 10:28:44
Pushed At2024-05-08 23:52:58
Last Commit At2022-06-29 10:38:53
Stargazers Count4.4k
Watchers Count147
Fork Count800
Commits Count2.6k
Has Issues Enabled
Issues Count1339
Issue Open Count394
Pull Requests Count738
Pull Requests Open Count38
Pull Requests Close Count158
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top