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星跟踪图

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

主要指标

概览
名称与所有者ClosedXML/ClosedXML
主编程语言C#
编程语言C# (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2016-08-27 10:28:44
推送于2025-07-16 21:39:21
最后一次提交2022-06-29 10:38:53
发布数61
最新版本名称0.105.0 (发布于 )
第一版名称0.80.1 (发布于 )
用户参与
星数5.2k
关注者数144
派生数884
提交数3k
已启用问题?
问题数1474
打开的问题数405
拉请求数923
打开的拉请求数47
关闭的拉请求数183
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?