Skip to content

Commit 1cd7506

Browse files
committed
feat: 🆕 update NPOI to 2.6
1 parent 6bd123b commit 1cd7506

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Chsword.Excel2Object/Chsword.Excel2Object.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Nullable>annotations</Nullable>
66
</PropertyGroup>
77
<PropertyGroup>
8-
<TargetFrameworks>netstandard2.0;net452</TargetFrameworks>
8+
<TargetFrameworks>netstandard2.0;net472;net6.0;netstandard2.1</TargetFrameworks>
99
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1010
<Product>Chsword.Excel2Object Library</Product>
1111
<Authors>Zou Jian</Authors>
@@ -23,7 +23,7 @@
2323
<None Include="..\README.md" Pack="true" PackagePath="\" />
2424
</ItemGroup>
2525
<ItemGroup>
26-
<PackageReference Include="NPOI" Version="2.5.6" />
26+
<PackageReference Include="NPOI" Version="2.6.0" />
2727
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
2828
<PackageReference Include="System.Net.Http" Version="4.3.4" />
2929
</ItemGroup>

Chsword.Excel2Object/ExcelExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private static T Switch<T>(ExcelType excelType, Func<T> funcXlsHssf, Func<T> fun
197197
private static byte[] ToBytes(IWorkbook workbook)
198198
{
199199
using var output = new MemoryStream();
200-
workbook.Write(output);
200+
workbook.Write(output, true);
201201
var bytes = output.ToArray();
202202
return bytes;
203203
}

0 commit comments

Comments
 (0)