.NET CORE webapi eppluse import (note the first month internship) Export

Recently, a demand which is exported web form data to excel so that the older generation's blog from Park Soso a demo for the most non-plug-NPOI and Eppluse types are used, so here introduce Eppluse usage, there is when the blog

There are a lot of want to see the message that import data inside the database from the dead rather than write, so I will take my case to share with usage (poorly written code that do not spray)

1. So, let's create a new ASP.NET Core WEB API application and install EPPlus.Core. To install EPPlus.Core, run the following command in the Package Manager console:

PM-> the Install the Package-EPPlus.Core 


2. Import

 


Then operate on the code corresponding to the controller

 

 

Export

 

 

 

 

 

 

 


These are the import and export department, but I encountered in the course of a problem is when local test can be downloaded onto the server would not be possible because if there is a permissions problem encountered similar problems solved seniors also hope to dance .

 

Guess you like

Origin www.cnblogs.com/woshibaibaibai/p/11568490.html
Recommended