mirror of
https://gitee.com/dotnetchina/MiniExcel.git
synced 2024-11-29 18:38:08 +08:00
1.26.6
This commit is contained in:
parent
b2fe9cd084
commit
dabf90c852
@ -22,6 +22,9 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### 1.26.6
|
||||||
|
- [OPT] Template save performance #425 (via @Rollerss)
|
||||||
|
|
||||||
### 1.26.5
|
### 1.26.5
|
||||||
- [New] Added DataReader AutoFilter toggle #402 #401 (via @Rollerss)
|
- [New] Added DataReader AutoFilter toggle #402 #401 (via @Rollerss)
|
||||||
- [New] SaveAs support empty sharedstring #405
|
- [New] SaveAs support empty sharedstring #405
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### 1.26.6
|
||||||
|
- [OPT] Template save performance #425 (via @Rollerss)
|
||||||
|
|
||||||
### 1.26.5
|
### 1.26.5
|
||||||
- [New] Added DataReader AutoFilter toggle #402 #401 (via @Rollerss)
|
- [New] Added DataReader AutoFilter toggle #402 #401 (via @Rollerss)
|
||||||
- [New] SaveAs 支持空白 sharedstring #405
|
- [New] SaveAs 支持空白 sharedstring #405
|
||||||
|
@ -24,6 +24,9 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### 1.26.6
|
||||||
|
- [OPT] Template save performance #425 (via @Rollerss)
|
||||||
|
|
||||||
### 1.26.5
|
### 1.26.5
|
||||||
- [New] Added DataReader AutoFilter toggle #402 #401 (via @Rollerss)
|
- [New] Added DataReader AutoFilter toggle #402 #401 (via @Rollerss)
|
||||||
- [New] SaveAs 支持空白 sharedstring #405
|
- [New] SaveAs 支持空白 sharedstring #405
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net45;netstandard2.0;net5.0</TargetFrameworks>
|
<TargetFrameworks>net45;netstandard2.0;net5.0</TargetFrameworks>
|
||||||
<Version>1.26.5</Version>
|
<Version>1.26.6</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>MiniExcel</AssemblyName>
|
<AssemblyName>MiniExcel</AssemblyName>
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
<None Remove="wwwroot\**" />
|
<None Remove="wwwroot\**" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\src\MiniExcel\MiniExcelLibs.csproj" />
|
<ProjectReference Include="..\..\src\MiniExcel\MiniExcelLibs.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -9,6 +9,8 @@ using System.IO;
|
|||||||
using System.Net;
|
using System.Net;
|
||||||
using MiniExcelLibs;
|
using MiniExcelLibs;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class Program
|
public class Program
|
||||||
{
|
{
|
||||||
@ -139,11 +141,12 @@ public class ApiController : Controller
|
|||||||
var stream = new MemoryStream();
|
var stream = new MemoryStream();
|
||||||
excel.CopyTo(stream);
|
excel.CopyTo(stream);
|
||||||
|
|
||||||
|
var result = new List<dynamic>();
|
||||||
foreach (var item in stream.Query(true))
|
foreach (var item in stream.Query(true))
|
||||||
{
|
{
|
||||||
// do your logic etc.
|
// do your logic etc.
|
||||||
|
result.Add(item);
|
||||||
}
|
}
|
||||||
|
return Ok("File uploaded successfully\ndata:"+ JsonConvert.SerializeObject(result));
|
||||||
return Ok("File uploaded successfully");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user