workflow - ClosedXML 0.92.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 VisualBasic.NET.

PM> Install-Package ClosedXML -Version 0.92.1 -Source https://www.myget.org/F/workflow/api/v3/index.json

Copy to clipboard

> nuget.exe install ClosedXML -Version 0.92.1 -Source https://www.myget.org/F/workflow/api/v3/index.json

Copy to clipboard

> dotnet add package ClosedXML --version 0.92.1 --source https://www.myget.org/F/workflow/api/v3/index.json

Copy to clipboard
<PackageReference Include="ClosedXML" Version="0.92.1" />
Copy to clipboard
source https://www.myget.org/F/workflow/api/v3/index.json

nuget ClosedXML  ~> 0.92.1
Copy to clipboard

> choco install ClosedXML --version 0.92.1 --source https://www.myget.org/F/workflow/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "workflow" -SourceLocation "https://www.myget.org/F/workflow/api/v2"
Install-Module -Name "ClosedXML" -RequiredVersion "0.92.1" -Repository "workflow" 
Copy to clipboard

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");
}

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

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

https://github.com/ClosedXML/ClosedXML/issues?q=is%3Aissue+milestone%3Av0.92+is%3Aclosed

.NET Standard 2.0 now supported!

Breaking changes: XLPivotField class is no longer public IXLRangeAddress.IsInvalid property removed IXLRangeAddress.IsValid property added XLClearOptions refactors into a flag enum. The applicable Clear() methods were updated accordingly.

  • .NETFramework 4.0
    • DocumentFormat.OpenXml (>= 2.7.2)
    • ExcelNumberFormat (>= 1.0.3)
    • FastMember.Signed (>= 1.3.0)
  • .NETFramework 4.6
    • DocumentFormat.OpenXml (>= 2.7.2)
    • ExcelNumberFormat (>= 1.0.3)
    • FastMember.Signed (>= 1.3.0)
  • .NETStandard 2.0
    • DocumentFormat.OpenXml (>= 2.7.2)
    • ExcelNumberFormat (>= 1.0.3)
    • FastMember.Signed (>= 1.3.0)
    • System.Drawing.Common (>= 4.5.0-preview1-25914-04)
  • .NETFramework 4.0: 4.0.0.0
  • .NETFramework 4.6: 4.6.0.0
  • .NETStandard 2.0: 2.0.0.0

Owners

Toma Bogdan flaviusm

Authors

Amir Ghezelbash, Francois Botha, Manuel De Leon

Project URL

https://github.com/ClosedXML/ClosedXML

License

MIT

Info

1116290 total downloads
8304 downloads for version 0.92.1
Download (1.45 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