MiniExcel 1.36.0

Prefix Reserved
dotnet add package MiniExcel --version 1.36.0                
NuGet\Install-Package MiniExcel -Version 1.36.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MiniExcel" Version="1.36.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MiniExcel --version 1.36.0                
#r "nuget: MiniExcel, 1.36.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MiniExcel as a Cake Addin
#addin nuget:?package=MiniExcel&version=1.36.0

// Install MiniExcel as a Cake Tool
#tool nuget:?package=MiniExcel&version=1.36.0                

This project is part of the .NET Foundation and operates under their code of conduct.


Introduction

MiniExcel is simple and efficient to avoid OOM's .NET processing Excel tool.

At present, most popular frameworks need to load all the data into the memory to facilitate operation, but it will cause memory consumption problems. MiniExcel tries to use algorithm from a stream to reduce the original 1000 MB occupation to a few MB to avoid OOM(out of memory).

image

Features

  • Low memory consumption, avoid OOM (out of memory) and full GC
  • Support real-time operation of each row of data
  • Support LINQ deferred execution, it can do low-consumption, fast paging and other complex queries
  • Lightweight, without Microsoft Office installed, no COM+, DLL size is less than 150KB
  • Easy API style to read/write/fill excel

Get Started

Installation

You can install the package from NuGet

Release Notes

Please Check Release Notes

TODO

Please Check TODO

Performance

Benchmarks logic can be found in MiniExcel.Benchmarks , and test cli

dotnet run -p .\benchmarks\MiniExcel.Benchmarks\ -c Release -f netcoreapp3.1 -- -f * --join

Output from the latest run is :

BenchmarkDotNet=v0.12.1, OS=Windows 10.0.19042
Intel Core i7-7700 CPU 3.60GHz (Kaby Lake), 1 CPU, 8 logical and 4 physical cores
  [Host]     : .NET Framework 4.8 (4.8.4341.0), X64 RyuJIT
  Job-ZYYABG : .NET Framework 4.8 (4.8.4341.0), X64 RyuJIT
IterationCount=3  LaunchCount=3  WarmupCount=3

Benchmark History : Link

Import/Query Excel

Logic : Test1,000,000x10.xlsx as performance test basic file, 1,000,000 rows * 10 columns "HelloWorld" cells, 23 MB file size

Library Method Max Memory Usage Mean
MiniExcel 'MiniExcel QueryFirst' 0.109 MB 0.0007264 sec
ExcelDataReader 'ExcelDataReader QueryFirst' 15.24 MB 10.66421 sec
MiniExcel 'MiniExcel Query' 17.3 MB 14.17933 sec
ExcelDataReader 'ExcelDataReader Query' 17.3 MB 22.56508 sec
Epplus 'Epplus QueryFirst' 1,452 MB 18.19801 sec
Epplus 'Epplus Query' 1,451 MB 23.64747 sec
OpenXmlSDK 'OpenXmlSDK Query' 1,412 MB 52.00327 sec
OpenXmlSDK 'OpenXmlSDK QueryFirst' 1,413 MB 52.34865 sec
ClosedXml 'ClosedXml QueryFirst' 2,158 MB 66.18897 sec
ClosedXml 'ClosedXml Query' 2,184 MB 191.43412 sec
Export/Create Excel

Logic : create a total of 10,000,000 "HelloWorld" excel

Library Method Max Memory Usage Mean
MiniExcel 'MiniExcel Create Xlsx' 15 MB 11.53181 sec
Epplus 'Epplus Create Xlsx' 1,204 MB 22.50971 sec
OpenXmlSdk 'OpenXmlSdk Create Xlsx' 2,621 MB 42.47399 sec
ClosedXml 'ClosedXml Create Xlsx' 7,141 MB 140.93992 sec

Documents

https://github.com/mini-software/MiniExcel

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (111)

Showing the top 5 NuGet packages that depend on MiniExcel:

Package Downloads
GuoKun.CPS

国坤CPS库

DH.MiniExcel

基于DH框架的Excel处理库。基于https://github.com/mini-software/MiniExcel

NF.Utilities

公共类库,增加DataTable转excel

BootstrapBlazor.TableExport

Bootstrap UI components extensions of export

TXQ.Utils

Package Description

GitHub repositories (8)

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

Repository Stars
Scighost/Starward
Game Launcher for miHoYo - 米家游戏启动器
dotnetcore/Magicodes.IE
Import and export general library, support Dto import and export, template export, fancy export and dynamic export, support Excel, Csv, Word, Pdf and Html.
izhaorui/Zr.Admin.NET
🎉ZR.Admin.NET是一款前后端分离的、跨平台基于RBAC的通用权限管理后台。ORM采用SqlSugar。前端采用Vue、AntDesign,支持多租户、缓存、任务调度、支持统一异常处理、接口限流、支持一键生成前后端代码,支持动态国际化翻译(Vue3),等诸多黑科技,代码简洁易懂、易扩展让开发更简单、更通用。
xunkong/xunkong
记录旅途中发生的事
colinin/abp-next-admin
这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
Version Downloads Last updated
1.36.0 10,798 12/12/2024
1.35.0 48,582 11/9/2024
1.34.2 119,528 9/14/2024
1.34.1 85,955 8/10/2024
1.34.0 59,848 7/21/2024
1.33.0 49,706 7/7/2024
1.32.1 109,964 5/16/2024
1.32.0 18,635 5/12/2024
1.31.3 416,865 12/27/2023 1.31.3 is deprecated because it is no longer maintained.
1.31.2 632,015 8/10/2023 1.31.2 is deprecated because it is no longer maintained.
1.31.0 241,885 5/28/2023 1.31.0 is deprecated because it is no longer maintained.
1.30.3 92,152 5/1/2023 1.30.3 is deprecated because it is no longer maintained.
1.30.2 449,092 2/21/2023 1.30.2 is deprecated because it is no longer maintained.
1.30.1 35,558 2/7/2023 1.30.1 is deprecated because it is no longer maintained.
1.30.0 191,189 12/27/2022 1.30.0 is deprecated because it is no longer maintained.
1.29.0 187,545 11/9/2022 1.29.0 is deprecated because it is no longer maintained.
1.28.5 19,901 10/30/2022 1.28.5 is deprecated because it is no longer maintained.
1.28.4 3,242 10/29/2022 1.28.4 is deprecated because it is no longer maintained.
1.28.2 3,231 10/29/2022 1.28.2 is deprecated because it is no longer maintained.
1.28.1 25,221 10/22/2022 1.28.1 is deprecated because it is no longer maintained.
1.28.0 68,697 9/19/2022 1.28.0 is deprecated because it is no longer maintained.
1.27.0 4,002 9/18/2022 1.27.0 is deprecated because it is no longer maintained.
1.26.7 11,284 9/9/2022 1.26.7 is deprecated because it is no longer maintained.
1.26.6 10,828 9/4/2022 1.26.6 is deprecated because it is no longer maintained.
1.26.5 294,530 6/30/2022 1.26.5 is deprecated because it is no longer maintained.
1.26.4 6,860 6/26/2022 1.26.4 is deprecated because it is no longer maintained.
1.26.3 227,784 6/7/2022 1.26.3 is deprecated because it is no longer maintained.
1.26.2 199,431 4/21/2022 1.26.2 is deprecated because it is no longer maintained.
1.26.1 10,637 4/17/2022 1.26.1 is deprecated because it is no longer maintained.
1.26.0 218,633 4/12/2022 1.26.0 is deprecated because it is no longer maintained.
1.24.2 3,545 3/17/2022 1.24.2 is deprecated because it is no longer maintained.
1.24.1 5,085 3/15/2022 1.24.1 is deprecated because it is no longer maintained.
1.24.0 15,136 3/9/2022 1.24.0 is deprecated because it is no longer maintained.
1.23.2 7,683 3/4/2022 1.23.2 is deprecated because it is no longer maintained.
1.23.1 226,254 2/14/2022 1.23.1 is deprecated because it is no longer maintained.
1.22.0 3,505 2/12/2022 1.22.0 is deprecated because it is no longer maintained.
0.21.5 32,609 2/7/2022 0.21.5 is deprecated because it is no longer maintained.
0.21.4 8,657 1/27/2022 0.21.4 is deprecated because it is no longer maintained.
0.19.1 278,210 11/15/2021 0.19.1 is deprecated because it is no longer maintained.
0.19.0 13,229 10/21/2021 0.19.0 is deprecated because it is no longer maintained.
0.18.0 16,667 9/13/2021 0.18.0 is deprecated because it is no longer maintained.
0.17.5 247,664 8/20/2021 0.17.5 is deprecated because it is no longer maintained.
0.17.4 5,312 8/17/2021 0.17.4 is deprecated because it is no longer maintained.
0.17.2 252,644 6/30/2021 0.17.2 is deprecated because it is no longer maintained.
0.17.1 6,473 6/23/2021 0.17.1 is deprecated because it is no longer maintained.
0.17.0 6,239 6/21/2021 0.17.0 is deprecated because it is no longer maintained.
0.16.1 4,778 6/19/2021 0.16.1 is deprecated because it is no longer maintained.
0.16.0 3,505 6/19/2021 0.16.0 is deprecated because it is no longer maintained.
0.15.5 5,124 6/13/2021 0.15.5 is deprecated because it is no longer maintained.
0.15.4 3,681 6/8/2021 0.15.4 is deprecated because it is no longer maintained.
0.15.2 10,327 5/20/2021 0.15.2 is deprecated because it is no longer maintained.
0.15.1 3,431 5/19/2021 0.15.1 is deprecated because it is no longer maintained.
0.14.8 3,887 5/18/2021 0.14.8 is deprecated because it is no longer maintained.
0.14.7 3,701 5/17/2021 0.14.7 is deprecated because it is no longer maintained.
0.14.6 4,895 5/13/2021 0.14.6 is deprecated because it is no longer maintained.
0.14.5 3,846 5/12/2021 0.14.5 is deprecated because it is no longer maintained.
0.14.4 3,440 5/12/2021 0.14.4 is deprecated because it is no longer maintained.
0.14.3 4,971 5/10/2021 0.14.3 is deprecated because it is no longer maintained.
0.14.2 3,425 5/10/2021 0.14.2 is deprecated because it is no longer maintained.
0.14.1 4,833 5/7/2021 0.14.1 is deprecated because it is no longer maintained.
0.14.0 3,506 5/7/2021 0.14.0 is deprecated because it is no longer maintained.
0.13.5 5,093 4/30/2021 0.13.5 is deprecated because it is no longer maintained.
0.13.4 5,486 4/26/2021 0.13.4 is deprecated because it is no longer maintained.
0.13.3 5,637 4/22/2021 0.13.3 is deprecated because it is no longer maintained.
0.13.2 5,171 4/20/2021 0.13.2 is deprecated because it is no longer maintained.
0.13.1 3,589 4/18/2021 0.13.1 is deprecated because it is no longer maintained.
0.13.0 3,396 4/16/2021 0.13.0 is deprecated because it is no longer maintained.
0.12.2 3,297 4/15/2021 0.12.2 is deprecated because it is no longer maintained.
0.12.1 3,210 4/14/2021 0.12.1 is deprecated because it is no longer maintained.
0.12.0-beta 2,260 4/13/2021 0.12.0-beta is deprecated because it is no longer maintained.
0.11.1 4,764 4/9/2021 0.11.1 is deprecated because it is no longer maintained.
0.11.0 3,319 4/8/2021 0.11.0 is deprecated because it is no longer maintained.
0.10.3 3,297 4/6/2021 0.10.3 is deprecated because it is no longer maintained.
0.10.2 3,244 4/6/2021 0.10.2 is deprecated because it is no longer maintained.
0.10.1 3,282 4/4/2021 0.10.1 is deprecated because it is no longer maintained.
0.10.0 3,264 4/2/2021 0.10.0 is deprecated because it is no longer maintained.
0.9.1 3,308 4/1/2021 0.9.1 is deprecated because it is no longer maintained.
0.9.0 3,214 4/1/2021 0.9.0 is deprecated because it is no longer maintained.
0.8.0 3,493 3/29/2021 0.8.0 is deprecated because it is no longer maintained.
0.7.0 3,273 3/28/2021 0.7.0 is deprecated because it is no longer maintained.
0.6.0 3,275 3/26/2021 0.6.0 is deprecated because it is no longer maintained.
0.5.0 3,231 3/26/2021 0.5.0 is deprecated because it is no longer maintained.
0.4.0 3,253 3/25/2021 0.4.0 is deprecated because it is no longer maintained.
0.3.0 3,218 3/21/2021 0.3.0 is deprecated because it is no longer maintained.
0.2.3 3,336 3/20/2021 0.2.3 is deprecated because it is no longer maintained.
0.2.2 3,565 3/18/2021 0.2.2 is deprecated because it is no longer maintained.
0.2.1 3,469 3/17/2021 0.2.1 is deprecated because it is no longer maintained.
0.2.0 3,505 3/15/2021 0.2.0 is deprecated because it is no longer maintained.
0.1.0-preview 2,438 3/15/2021 0.1.0-preview is deprecated because it is no longer maintained.
0.0.7-beta 2,424 3/14/2021 0.0.7-beta is deprecated because it is no longer maintained.
0.0.6-beta 2,453 3/14/2021 0.0.6-beta is deprecated because it is no longer maintained.
0.0.5-beta 2,555 3/14/2021 0.0.5-beta is deprecated because it is no longer maintained.
0.0.4-beta 2,454 3/14/2021 0.0.4-beta is deprecated because it is no longer maintained.
0.0.3-beta 2,421 3/13/2021 0.0.3-beta is deprecated because it is no longer maintained.
0.0.2-beta 2,377 3/4/2021 0.0.2-beta is deprecated because it is no longer maintained.
0.0.1-beta 2,373 3/3/2021 0.0.1-beta is deprecated because it is no longer maintained.