-
Notifications
You must be signed in to change notification settings - Fork 820
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 - Excel crash #424
Comments
Stale issue message |
Any news on this? I have the same issue. |
@korpa sorry, no, I haven't even begun to look into this. |
Ok. It seems, that the location of autoFilter really matters which is odd for XML. Now Excel opens without an error message and I can filter and sort via auto filters. By the way. I'm using |
It's geeting even stranger.
This is exactlty as @mickesommar described the issue. |
Odd for XML indeed - but not odd for Excel. We see these kinds of errors all the time (almost all of the "corruption" problems are this kind of thing). My belief (I don't know) is that Microsoft defined the XML standard as a simple translation of their raw data structures to XML, and that they simply translate them back and try to load them. That would explain why this sort of stuff works fine for any application that follows the standard except Excel. |
Can confirm. Files generated by the lib with autoFilters enabled cannot be opened via Microsoft Excel. No problem with LibreOffice or WPS Spreadsheets though. |
Stale issue message |
Then adding AutoFilter, excel crashes then sorting. But if I use the filter version first, then sorting is working.
Have tried with Excel 2010, 2013, Windows 7, Windows 10, Windows Server 2012.
In LibreOffice, the autofilter will not a peer.
Compiled with Go 1.11.1
The below code will create the file: names.xlsx, with AutoFilter.
Open the file, try to sort in the "Name" column. Excel will crash.
But if you try to use the filter, for example, only show the name "bob", then select all and sort. It will work.
Do I use the package wrong?
`
package main
import (
"github.com/tealeg/xlsx"
)
func main() {
var file *xlsx.File
var sheet *xlsx.Sheet
var row *xlsx.Row
var cell *xlsx.Cell
var err error
}
`
The text was updated successfully, but these errors were encountered: