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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?