ClosedXML 0.95.0

.NET Standard 2.0 .NET Framework 4.0
There is a newer version of this package available.
See the version list below for details.
Install-Package ClosedXML -Version 0.95.0
dotnet add package ClosedXML --version 0.95.0
<PackageReference Include="ClosedXML" Version="0.95.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ClosedXML --version 0.95.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ClosedXML, 0.95.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ClosedXML as a Cake Addin
#addin nuget:?package=ClosedXML&version=0.95.0

// Install ClosedXML as a Cake Tool
#tool nuget:?package=ClosedXML&version=0.95.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Breaking changes

  • Range strings, e.g. A1:B2 are now always treated as absolute, i.e. relative to A1 instead of relative to the top left cell of a given range.
  • IXLSheetProtection has been totally refactored and now uses a flag based enum to control the elements that are allowed or locked.
  • Removed IXLSheetProtection.IsProtected setter
  • XLClearOptions and XLCellUsedOptions 's flags are now aligned
  • IXLDataValidation.Ranges made readonly
  • To add or remove ranges from the data validation rule the user must use dedicated methods (AddRange, AddRanges, ClearRanges, RemoveRange)
  • A single data validation rule cannot apply to ranges from different worksheets (it was a bug that this was possible)

Pull requests merged since 0.95.0-beta2

Bug fixes

#1063 Copy comment style correctly when shifting ranges #1108 Correctly save empty cell with quote prefix (do not treat as empty) #1125 Change cached value type when data type changes #1132 <c> elements with missing r attribute: XLAddress constructor had parameters swapped #1133 Enumerate ranges in a deterministic order #1134 Correctly propagate worksheet style to cells from a worksheet #1135 Correctly load column-wide styles #1137 Fix changing inner borders of the range #1150 Correctly clear inline string when required #1153 Correctly throw DivisionByZeroException when denominator is zero. #1155 Ignore _X (capital X) as XML escaping char #1161 Avoid creation of new item in Internals.RowsCollection when adding comment #1168 Fix initialization of default styles for XLCells, XLRows, XLColumns and XLRanges #1172 Clear all RelId's if workbook is loaded from template. #1178 Fixes in GetHashCode functions (1073) #1196 Fix error by two pivot with one source #1195 #1223 Fix pivot subtotals loading #1227 Refactor comments #1234 Merged ranges cell values should not be set, except for top left cell of merged range #1245 Fix the issue with conditional formats created in non-US culture (#1187) #1247 Fix issues related to cells inserting (1236) #1266 Fix CONCATENATE for cell references #1282 Treat missing numberFormatId as General numberformat #1289 Remove unused code and fix ATAN2 tests #1292 Redefine rules for sheet name escaping (#1287) #1307 Fix null exception when saving a file #1316 Fix exception when loading rows with no row index populated (#1314) #1323 #651: fix loading with deleted worksheets. #1351 Fix null DateTime in XLCell.InsertDataInternal with IEnumerable #1356 Fix a regular expression used for extracting A1 references #1359 Fixed the Expression double conversion operator to handle string values #1362 Set longText attribute for string items in pivot table #1369 Fix issues with loading comments (#1244) #1384 When saving, mark the first selected tab as active if no active tabs exist (#1383) #1386 Set the first sheet active and visible on loading if no active tab is specified in file (#1383)

Enhancments

#1015 Feature/#1010 text join func #1038 IXLSheetProtection refactoring #1054 Implement workbook FileSharing and a few of the properties #1058 Dont recalculate formula cached values after load #1077 Refactor digit and letter parsing to allow Unicode characters #1109 Don't automatically adjust columns width to contents when inserting datatable. Some users want to opt out because of PlatformNotSupportedException #1122 Add helper methods to add worksheet with default sheet name #1129 Alternative implementation of pivot table formats #1130 Enhance TRUNC function for additional parameter #1136 Implement NUMBERVALUE function #1151 Performance improvement to delete entire columns #1158 Check that print titles are valid row ranges or column ranges #1166 Ignore default Excel function namespace and implement CONCAT function #1169 Avoid creating new XLCell instances during range shifting #1170 Remove IXLSheetProtection.IsProtected public setter #1174 Correctly dispose temporary memorystream #1175 Sparklines implementation #1183 Improve Merge operation performance #1194 Fix for issue 1192 #1205 Improve performance of worksheet copying (1188) #1208 optional range consolidation via save options #1219 Implement MATCH and INDEX functions #1224 Improve performance of loading workbooks having many merged ranges (#1220) #1227 Refactor comments #1232 Set versioning number to allow enhanced pivot table features #1237 Improve HLOOKUP and VLOOKUP performance #1240 Prevent copying of deleted worksheets. #1253 Replace licenseUrl (deprecated) with license tag #1278 Clear CellsCollection on WorksheetInternals disposal (#1276) #1284 Improvements for workbook saving (#1280) #1293 Remove the unnecessary check for VML elements not existing (#1285) #1326 Issue 1325: PopulateAutoFilter range check #1353 Implement % operator and correctly parse expressions with multiple unary operators (--, ++) #1357 Replace String.Compare with TryGetValue #1364 Fix issues occurred when running tests on .Net Core 3.0 #1368 Clear inlined rich text data on saving (#1361) #1376 CEILING and FLOOR fixes #1379 Explicitly set document type on saving (#1375) #1381 Exclude dependent SUBTOTAL formulas in SUBTOTAL evaluation #1388 Remove the dependency on FastMember. Improve performance of InsertData (#797) #1391 Replace ContainsKey with TryGetValue

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (186)

Showing the top 5 NuGet packages that depend on ClosedXML:

Package Downloads
ClosedXML.Report

ClosedXML.Report is a tool for report generation and data analysis in .NET applications through the use of Microsoft Excel. ClosedXML.Report is a .NET-library for report generation Microsoft Excel without requiring Excel to be installed on the machine that's running the code.

FidelizarMais.Packages.Common

FMPC is a service with utilities such as standard messages, document validators and CDN for images and PDF.

Ewl

The Enterprise Web Library (EWL), together with its tailored infrastructure platform, is a highly opinionated foundation for web-based enterprise software.

CsvHelper.Excel

An implementation of ICsvParser and ICsvSerializer from CsvHelper that reads and writes using the ClosedXml library.

ClosedXML.Extensions.Mvc

MVC extensions for ClosedXML

GitHub repositories (17)

Showing the top 5 popular GitHub repositories that depend on ClosedXML:

Repository Stars
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
fullstackhero/dotnet-webapi-boilerplate
Clean Architecture Template for .NET 6.0 WebApi built with Multitenancy Support.
phongnguyend/Practical.CleanArchitecture
Asp.Net Core 6 Clean Architecture (Microservices, Modular Monolith, Monolith) samples (+Blazor, Angular 13, React 17, Vue 2.6), Domain-Driven Design, CQRS, Event Sourcing, SOLID, Asp.Net Core Identity Custom Storage, Identity Server 4 Admin UI, Entity Framework Core, Selenium E2E Testing, SignalR, Hosted Services, Health Checks, Security Headers, ...
open-rpa/openrpa
Free Open Source Enterprise Grade RPA
focus-creative-games/luban
你的最佳游戏配置解决方案 {excel, csv, xls, xlsx, json, bson, xml, yaml, lua, unity scriptableobject} => {json, bson, xml, lua, yaml, protobuf(pb), msgpack, flatbuffers, erlang, custom template} data + {c++, java, c#, go(golang), lua, javascript(js), typescript(ts), erlang, rust, protobuf schema, flatbuffers schema, custom template} code。 不仅仅是导表工具。支持unity , ue4, tolua, xlua, slua, ilruntime, puerts等热更新插件;强大的数据校验能力;完善的本地化机制。a powerful game config export tool and code generator that supports for i18n and l10n.
Version Downloads Last updated
0.95.4 5,954,400 12/16/2020
0.95.3 3,493,349 5/25/2020
0.95.2 427,576 4/26/2020
0.95.1 97,691 4/23/2020
0.95.0 274,204 4/15/2020
0.95.0-beta2 64,667 8/21/2019
0.95.0-beta1 37,105 4/4/2019
0.94.2 3,820,239 12/18/2018
0.94.0 42,158 12/12/2018
0.94.0-rc2 4,325 11/29/2018
0.94.0-rc1 6,575 11/11/2018
0.93.1 764,385 8/7/2018
0.93.0 306,626 6/25/2018
0.93.0-rc3 7,193 6/7/2018
0.93.0-rc2 2,755 5/31/2018
0.93.0-beta4 3,802 5/14/2018
0.93.0-beta2 4,223 4/26/2018
0.93.0-beta1 1,982 4/19/2018
0.92.1 555,014 4/10/2018
0.92.0-beta1 4,076 3/22/2018
0.91.1 33,560 4/4/2018
0.91.0 209,269 1/31/2018
0.91.0-beta3 2,420 1/23/2018
0.91.0-beta2 11,877 12/8/2017
0.91.0-beta1 2,010 11/29/2017
0.90.0 496,422 10/23/2017
0.90.0-beta2 2,305 10/6/2017
0.89.0 301,641 9/12/2017
0.89.0-beta1 3,943 8/23/2017
0.88.0 159,782 7/24/2017
0.88.0-beta1 9,678 7/10/2017
0.87.1 870,682 4/3/2017
0.86.0 272,423 1/6/2017
0.85.0 203,635 12/7/2016
0.80.1 405,750 9/15/2016
0.76.0 1,240,736 12/16/2014
0.75.0 142,509 9/17/2014
0.74.0 28,588 8/10/2014
0.73.0 34,458 6/24/2014
0.72.3 15,978 6/4/2014
0.72.2 2,138 6/4/2014
0.72.1 42,538 6/4/2014
0.72.0 5,112 6/4/2014
0.71.1 11,117 5/26/2014
0.70.0 6,565 5/18/2014
0.69.2 124,864 10/3/2013
0.69.1 43,999 8/15/2013
0.69.0 4,208 8/10/2013
0.68.1 67,960 10/20/2012
0.68.0 3,142 10/12/2012
0.67.2 15,221 8/14/2012
0.67.1 2,125 8/13/2012
0.67.0 2,168 8/12/2012
0.66.1 2,777 7/28/2012
0.66.0 2,381 7/18/2012
0.65.2 5,069 4/21/2012
0.64.0 6,123 2/4/2012