mirror of
https://gitee.com/dotnetchina/MiniExcel.git
synced 2024-11-29 18:38:08 +08:00
Added missing Autofilter assignment for DataTable export (#610)
* Added missing Autofilter assignment for DataTable export * Fixed autofilter being written before EndSheetData
This commit is contained in:
parent
c79c64d478
commit
0c878b1542
@ -328,6 +328,12 @@ namespace MiniExcelLibs.OpenXml
|
||||
}
|
||||
|
||||
await writer.WriteAsync(WorksheetXml.EndSheetData);
|
||||
|
||||
if (_configuration.AutoFilter)
|
||||
{
|
||||
await writer.WriteAsync(WorksheetXml.Autofilter(GetDimensionRef(maxRowIndex, maxColumnIndex)));
|
||||
}
|
||||
|
||||
await writer.WriteAsync(WorksheetXml.EndWorksheet);
|
||||
}
|
||||
|
||||
|
@ -364,6 +364,12 @@ namespace MiniExcelLibs.OpenXml
|
||||
}
|
||||
|
||||
writer.Write(WorksheetXml.EndSheetData);
|
||||
|
||||
if (_configuration.AutoFilter)
|
||||
{
|
||||
writer.Write(WorksheetXml.Autofilter(GetDimensionRef(maxRowIndex, maxColumnIndex)));
|
||||
}
|
||||
|
||||
writer.Write(WorksheetXml.EndWorksheet);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user