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

AutoFilter will freeze the excel window #637

Closed
weeee9 opened this issue May 14, 2020 · 2 comments
Closed

AutoFilter will freeze the excel window #637

weeee9 opened this issue May 14, 2020 · 2 comments
Labels
confirmed This issue can be reproduced

Comments

@weeee9
Copy link

weeee9 commented May 14, 2020

Description

AutoFilter will freeze the excel window.

Steps to reproduce the issue:

  1. Create a new file and insert some value to Sheet1, set autofilter to header row
    (ex. f.AutoFilter("Sheet1", "A1", "E1", "") ) then save the file.

  2. Open file, choose Sort A to Z (or Z to A) on the filter and the excel window will freeze, can't do anything.
    (but if choose some text filter first then sort won't cause this problem)

Output of go version:

go version go1.13.5 windows/amd64

Excelize version or commit ID:

excelize v2.2.0

Environment details (OS, Microsoft Excel™ version, physical, etc.):
Happened on both Excel 2007 and 2013 (don't know if other version would happen too)

@xuri xuri added the confirmed This issue can be reproduced label May 14, 2020
@xuri xuri closed this as completed in 9baa1bb May 14, 2020
@xuri
Copy link
Member

xuri commented May 14, 2020

Thanks for your issue. I have fixed it. Please try to upgrade the library with the master branch code.

@weeee9
Copy link
Author

weeee9 commented May 15, 2020

Hi, thanks for the nice work,
but there is a problem after upgraded to the master branch, don’t known if related.

I have a web app that let user download excel, and the autofilter works fine at the first download, then it will get Removed Feature: Named range from /xl/workbook.xml part (Workbook) error for every downloaded excel, after recover it, the problem of the issue happened again, any thought?

edit:
Solved it, have to delete default Sheet1 first then set autofilter.

Jerome1337 pushed a commit to Jerome1337/excelize that referenced this issue Jun 16, 2020
nullfy pushed a commit to nullfy/excelize that referenced this issue Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed This issue can be reproduced
Projects
None yet
Development

No branches or pull requests

2 participants