Open s-bresler opened 2 weeks ago
Yes, this is a known issue that we have on our to do list. Just as I described in the other issue you linked, this happens because when we save the workbook and apply the filter, the hidden property on the row is set to false. This should of course be fixed in a future version. For now it appears that by setting worksheet.Workbook._package.Settings.ApplyFiltersOnSave to false should give you the behavior you expect.
Ok thanks. It is working in the example code now after I tweaked the line a bit to package.Settings.ApplyFiltersOnSave = false;
EPPlus usage
Noncommercial use
Environment
Windows
Epplus version
7.4.2
Spreadsheet application
Excel
Description
CollapseChildren seems to be incompatable with having an AutoFilter.
I can't create an excel file with both auto filters on the top row and collapsed groupings. The groupings only collapse when autofilter is set to false.
This issue may be linked to #1499
See code below: