-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
XFExt 0x000B throws exception #298
Comments
+1 |
Can you share a sample file showing this? |
@reviewher this is the file that make an error |
When trying to import an Excel file (format "XLS") with js-xlsx 0.8.1, I got the error "bafuqb", too. |
Thanks @aimcom @baharudinafif that throw statement should have been guarded with a WTF check. We're removing the throw in 0.9.2 |
- decode sheet name for XLSX and XLML (fixes SheetJS#203 h/t @rocketmonkeys) - XFExt (fixes SheetJS#298 h/t @aetna-softwares @aimcom @baharudinafif) - handle truly empty `<is>` elements (fixes SheetJS#506 h/t @asksahil) - pin version numbers for dependencies (fixes SheetJS#469 h/t @nhtera) - sed usage fix (see SheetJS#572 h/t @Liryna) - fix hex2RGB substr indices (fixes SheetJS#294 h/t @kamorahul) - removed stale typescript files (see SheetJS#442) - reworked shift formula regex (fixed SheetJS#551 h/t @SheetJSDev) - README note on webpack codepage suppression (fixes SheetJS#438 h/t @rusty1s) - README note on WTF (fixes SheetJS#487 h/t @livesoftware)
I received a file XLS that I parsed using
it failed with error "bafuqb"
After some debugging, I found that it is due to the presence of a XFExt with value 0x000B which is not known by the function :
Looking at MSDN documentation (https://msdn.microsoft.com/en-us/library/dd906769(v=office.12).aspx), this value is about "the diagonal cell border color".
adding the following case solved my problem :
A workaround to read the file, is to manually open it in Excel before a remove all cell formatting
please note that it seems that values 0x06 and 0x0f are also missing in the function
The text was updated successfully, but these errors were encountered: