workflow - ClosedXML 0.86.0
ClosedXML makes it easier for developers to create Excel 2007/2010/2013 files. It provides a nice object oriented way to manipulate the files (similar to VBA) without dealing with the hassles of XML Documents. It can be used by any .NET language like C# and Visual Basic (VB).
PM> Install-Package ClosedXML -Version 0.86.0 -Source https://www.myget.org/F/workflow/api/v3/index.json
> nuget.exe install ClosedXML -Version 0.86.0 -Source https://www.myget.org/F/workflow/api/v3/index.json
> dotnet add package ClosedXML --version 0.86.0 --source https://www.myget.org/F/workflow/api/v3/index.json
source https://www.myget.org/F/workflow/api/v3/index.json
nuget ClosedXML ~> 0.86.0
Copy to clipboard
> choco install ClosedXML --version 0.86.0 --source https://www.myget.org/F/workflow/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "workflow" -SourceLocation "https://www.myget.org/F/workflow/api/v2"
Install-Module -Name "ClosedXML" -RequiredVersion "0.86.0" -Repository "workflow"
Copy to clipboard
💾 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");
}
Frequent answers
- ClosedXML is not thread-safe. There is no guarantee that parallel operations will work. The underlying OpenXML library is also not thread-safe.
- If you get an exception
The type initializer for 'Gdip' threw an exception.
on Linux, try these solutions.
Extensions
Be sure to check out our ClosedXML
extension projects
- https://github.com/ClosedXML/ClosedXML.Report
- https://github.com/ClosedXML/ClosedXML.Extensions.AspNet
- https://github.com/ClosedXML/ClosedXML.Extensions.Mvc
- https://github.com/ClosedXML/ClosedXML.Extensions.WebApi
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
- Project originally created by Manuel de Leon
- Current maintainer: Francois Botha
- Master of Computing Patterns: Aleksei Pankratev
- Logo design by @Tobaloidee
-
.NETFramework 4.0
- DocumentFormat.OpenXml (>= 2.5.0)
-
.NETFramework 3.5
- DocumentFormat.OpenXml (>= 1.0.0)
- .NETFramework 3.5: 3.5.0.0
- .NETFramework 4.0: 4.0.0.0
OwnersToma Bogdan flaviusm |
AuthorsAmir Ghezelbash, Francois Botha, Manuel De Leon |
Project URLhttps://github.com/ClosedXML/ClosedXML |
LicenseMIT |
TagsExcel OpenXML |
Info1116290 total downloads |
36074 downloads for version 0.86.0 |
Download (1.67 MB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
0.95.4 | 1.83 MB | Tue, 15 Jun 2021 11:18:01 GMT | 117550 | ||||
0.94.2 | 1.61 MB | Thu, 08 Oct 2020 21:05:39 GMT | 67404 | ||||
0.92.1 | 1.45 MB | Thu, 17 Jun 2021 08:06:59 GMT | 8304 | ||||
0.87.1 | 1.52 MB | Thu, 17 Jun 2021 08:19:17 GMT | 886958 | ||||
0.86.0 | 1.67 MB | Wed, 17 May 2017 10:11:35 GMT | 36074 |