Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ dotnet_diagnostic.CA2007.severity = error

# CA2016: Forward the CancellationToken parameter to methods that take one
dotnet_diagnostic.CA2016.severity = error

csharp_style_namespace_declarations = file_scoped:silent
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ master ]
branches: [ master, v1.x-maintenance ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [ master, v1.x-maintenance ]
schedule:
- cron: '18 0 * * 0'

Expand Down
1 change: 1 addition & 0 deletions MiniExcel.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs and setting", "Docs an
README.zh-Hant.md = README.zh-Hant.md
.github\workflows\benchmark.yml = .github\workflows\benchmark.yml
.github\workflows\codeql-analysis.yml = .github\workflows\codeql-analysis.yml
docs\core_logic_diagram.drawio = docs\core_logic_diagram.drawio
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{CC1E0601-AEC9-42D7-8F6A-3FB3939EED16}"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,8 @@ MiniExcel.SaveAs(path, reader,configuration:config);

#### 6. Batch Add Image (MiniExcel.AddPicture)

Please add pictures before batch generate rows data, or system will load large memory usage when calling AddPicture.

```csharp
var images = new[]
{
Expand Down
2 changes: 2 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -1634,6 +1634,8 @@ public class Order

#### 6. 批量添加/插入图片 (MiniExcel.AddPicture)

请在批量生成行数据之前添加图片,否则在调用 AddPicture 时系统会占用大量内存。

```csharp
var images = new[]
{
Expand Down
2 changes: 2 additions & 0 deletions README.zh-Hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,8 @@ MiniExcel.SaveAs(path, reader,configuration:config);

#### 6. 批量添加/插入圖片 (MiniExcel.AddPicture)

請在批量生成行資料之前新增圖片,否則在呼叫 AddPicture 時系統將會佔用大量記憶體。

```csharp
var images = new[]
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ public void NPOI_Query_Test()

for (var i = start; i <= end; i++)
{
var row = worksheet.GetRow(i);
if (row == null)
continue;
for (var j = row.FirstCellNum; j <= row.LastCellNum; j++)
if (worksheet.GetRow(i) is { } row)
{
var cellValue = row.GetCell(j)?.StringCellValue;
for (var j = row.FirstCellNum; j <= row.LastCellNum; j++)
{
var cellValue = row.GetCell(j)?.StringCellValue;
}
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
---


### 1.41.3
- [New] Adding QuoteWhitespaces option to CsvConfiguration for adding double quotes to string containing whitespaces #790 (via @michelebastione )
- [Bug] Fixed bug that made the DynamicExcelColumn property "Ignore" not work when generating using an IDataReader as source #584 (via @michelebastione )
- [Bug] v1.41.2 AddPicture not working #814 (via @shps951023)
- [Bug] v1.41.1 AddPicture image max column and row are 2 cells #815 (via @shps951023)
- [Bug] AddPicture get error same export file and second time. #817 (via @shps951023)


### 1.41.2
- [New] Fixes enum behaviour and adds support for DescriptionAttribute when saving by template (via @michelebastione )
- [Bug] SaveAsByTemplate - Excel Dimension Xml is null #459 (via @michelebastione )
Expand Down
11 changes: 11 additions & 0 deletions docs/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@



### 1.41.3

* 【新增】在 `CsvConfiguration` 中新增 `QuoteWhitespaces` 选项,用于对空白单元的字符串加上双引号 #790(贡献者:@michelebastione)
* 【修复】修正使用 `IDataReader` 作为数据源时,`DynamicExcelColumn` 的 `Ignore` 属性无效的问题 #584(贡献者:@michelebastione)
* 【修复】v1.41.2 中 `AddPicture` 功能无法使用的问题 #814(贡献者:@shps951023)
* 【修复】v1.41.1 中 `AddPicture` 插入的图片最大列和行仅限于2个单元格的问题 #815(贡献者:@shps951023)
* 【修复】`AddPicture` 在导出文件后再次执行时出现错误的问题 #817(贡献者:@shps951023)




### 1.41.2
- [New] 增加 enum behaviour and adds support for DescriptionAttribute when saving by template (via @michelebastione )
- [Bug] SaveAsByTemplate - Excel Dimension Xml is null #459 (via @michelebastione )
Expand Down
10 changes: 10 additions & 0 deletions docs/README.zh-Hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
---



### 1.41.3

* 【新增】在 CsvConfiguration 中新增 `QuoteWhitespaces` 選項,讓包含空白字元的字串自動加上雙引號 #790(由 @michelebastione 提供)
* 【修正】修正當使用 IDataReader 作為資料來源時,DynamicExcelColumn 的 `Ignore` 屬性無效的問題 #584(由 @michelebastione 提供)
* 【修正】v1.41.2 中 `AddPicture` 功能無法使用的問題 #814(由 @shps951023 提供)
* 【修正】v1.41.1 中 `AddPicture` 插入的圖片最大列與欄僅為兩格儲存格的問題 #815(由 @shps951023 提供)
* 【修正】當再次使用相同匯出檔案時,`AddPicture` 發生錯誤的問題 #817(由 @shps951023 提供)


### 1.41.2
- [New] 增加 enum behaviour and adds support for DescriptionAttribute when saving by template (via @michelebastione )
- [Bug] SaveAsByTemplate - Excel Dimension Xml is null #459 (via @michelebastione )
Expand Down
1 change: 0 additions & 1 deletion docs/core logic 1.drawio

This file was deleted.

Loading
Loading