Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set a filter on column ? #150

Open
Serial86 opened this issue Mar 25, 2021 · 5 comments
Open

How to set a filter on column ? #150

Serial86 opened this issue Mar 25, 2021 · 5 comments

Comments

@Serial86
Copy link

Hi,

First your lib is very good. Thanks.

In the Excel example, I have no found example on the filter columns. Is it implemented ?

Thanks in advance,
Serial86

@j2doll
Copy link
Member

j2doll commented Mar 28, 2021

Dear @Serial86

The feature is not supported.

What exactly is the filter function you mentioned?

@Serial86
Copy link
Author

Hi.
In Excel, when you have a column we can set a filter on this data column. For example if you have data with A D C C E A. You can filter on A D C E.

See in link
https://support.microsoft.com/en-us/office/filter-data-in-a-range-or-table-01832226-31b5-4568-8806-38c37dcc180e

Thanks in advance.

@j2doll
Copy link
Member

j2doll commented Apr 3, 2021

Thank you for reporting.
I will register this issue to an enhancement.

@Serial86
Copy link
Author

Serial86 commented Apr 3, 2021 via email

@aristocratos
Copy link

@Serial86 @j2doll
There is a pull request in in the old QtXlsxWriter repo: dbzhang800/QtXlsxWriter#98 that I think would add the requested functionality.
It includes setting auto filter, splitting panes and freezing panes.
It works without problem when patched in to the current codebase of QXlsx.

But to qualify, it works without problem with my code, I don't know if it would cause issues with any functions I currently don't use. There should also probably be some additional error checking added if used, I noticed that when for example entering incorrect parameters for the freeze panes function instead of throwing or similar it just corrupts the generated file.

The linenumbers for the added code won't be correct but patching it manually by looking at the preceding and following code of the added codeblocks works.

Just a FYI /Cheers and thanks for the great library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants