-
-
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
SSF - format not supported #2695
Comments
Excel appears to be auto-correcting var wb = XLSX.utils.book_new();
var ws = XLSX.utils.aoa_to_sheet([[12345.6789]]);
ws["A1"].z = "#,0";
XLSX.utils.book_append_sheet(wb, ws, "Sheet1");
XLSX.writeFile(wb, "issue2695.xlsx"); (https://jsfiddle.net/c91Lotas/ live example) Excel 2019 en-US appears to treat it as number with thousands separator and zero decimal places |
I can see that, but is the library going to support that? |
It's an interesting question. The current approach is to stick the autocorrected formats in the main file processing library, but it probably should be added to the library. |
could you refer me to the code relating to this? |
I have been using SSF in my project, and have run into this problem - when the format is "#,0" it seems to throw an error. That is a valid excel format.
Error: unsupported format |#,0|
Component: write_num_flt
Stack: at write_num_flt (ssf.js:498)
at write_num (ssf.js:616)
at eval_fmt (ssf.js:824)
at format (ssf.js:940)
The text was updated successfully, but these errors were encountered: