NPOIHelper NuGet Package

快速生成Excel报表

var helper = NPOIHelperBuild.GetHelper();
helper.Add("sheet1", data);
return File(helper.ToArray(), helper.ContentType, helper.FullName);



快速读取Excel

//读取到List
NPOIHelperBuild.ReadExcel<ImportUser>("TestImportExcel/test1.xlsx");

//读取到DataTable
NPOIHelperBuild.ReadExcel("TestImportExcel/test1.xlsx");.




Got any NPOIHelper Question?





Info

Version: 2.0.13
Author(s): Labbor
Last Update: Wednesday, February 16, 2022
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/shaiyu/NPOIHelper
NuGet Url: https://www.nuget.org/packages/NPOIHelper


Install
Install-Package NPOIHelper
dotnet add package NPOIHelper
paket add NPOIHelper
NPOIHelper Download (Unzip the "nupkg" after downloading)

.NETFramework 4.5 .NETStandard 2.0




STATS

must-have-score

1.3

avg-downloads-per-day

1

days-since-last-release

814