workflow - ClosedXML 0.87.1
ClosedXML makes it easier for developers to create Excel 2007+ (.xlsx, .xlsm, etc) 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.87.1 -Source https://www.myget.org/F/workflow/api/v3/index.json
> nuget.exe install ClosedXML -Version 0.87.1 -Source https://www.myget.org/F/workflow/api/v3/index.json
> dotnet add package ClosedXML --version 0.87.1 --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.87.1
Copy to clipboard
> choco install ClosedXML --version 0.87.1 --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.87.1" -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
#148 Improve conditional formatting loading and saving #149 Update test for correctly testing time value as string #154 Shift page breaks #157 Fix maths / statistical functions #158 Explicitly ignore custom sheet view elements. #159 Force OpenXMLValidator to run under invariant culture #172 Allow pivot table field to be a value field and a row/column/filter #173 Cap column width at 255 #179 Pivot table loading enhancements and collapsing fields #180 Implement sheet zooming #185 Correctly deduce data type from number format string if data type i #186 Deduce default header and footer font from worksheet #199 Classic layout should be disabled by default. #200 Preserve whitespace in cells. #203 Remove orphaned drawings from worksheets #204 Better detection of numerical data types. Not only System.Double. #212 Preserve cell format when inserting table or data #214 Don't reference cell to get row height #222 Add VmlDrawing Id's to context to avoid reuse. #231 Text() function - return string as is if input value is already a s #232 Column.AdjustToContents(): Inspect worksheet and table autofilters #233 Don't crash when file contains multiple default styles
-
.NETFramework 3.5
- DocumentFormat.OpenXml (>= 1.0.0)
-
.NETFramework 4.0
- DocumentFormat.OpenXml (>= 2.5.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 |
Info1116290 total downloads |
886958 downloads for version 0.87.1 |
Download (1.52 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 |