mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #374] Auto-filter combined with merged cells broken #300
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#300
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @znakeeye on GitHub (May 27, 2022).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/374
Originally assigned to: @jmcnamara on GitHub.
Using
libxlsxwriter 1.1.4. Consider the sample below. When merging cells, the auto-filter produces incorrect filter setup. Toggling the filters in Excel corrects the problem.Actual:
Expected:
@jmcnamara commented on GitHub (May 27, 2022):
Thanks for the detailed sample code.
This looks like a bit of an unusual use case. You can almost get what you want by extending the autofilter to column C (which strictly speaking is where is should be):
This give the following output:
However, it has an additional filter arrow in column B that you don't want (based on your Expected image). Turning off the filter arrow for a column is not currently supported by any of the xlsxwriter variants. So you'll probably need to find some other way to represent the functionality that you want.
@znakeeye commented on GitHub (May 27, 2022):
In Excel 365 you simply cannot create the result you get from xlsxwriter, and vice versa. How come? Doesn't libxlsxwriter strive for 100% Excel compatibility?
If we compare the files (before and after clicking the button in Excel), maybe we can find the trick.
@jmcnamara commented on GitHub (May 27, 2022):
There is a autoFilter xml attribute called showButton that is used by Excel to hide one of the filter arrows. It is usually only accessible via VBA. I'm surprised that it can be enabled like this.
What is the use case a merged autofilter?
@jmcnamara commented on GitHub (Jun 4, 2022):
Unfortunately, this is too much of an edge case to support. Closing until there are more requests for it and a definite use case.