-
Notifications
You must be signed in to change notification settings - Fork 63
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
Why can't we use the 0-th CellXf ? #73
Comments
MS has wonders in its pockets :)
And at the moment I don't find anything else about it :( |
Couldn't find it in a spec anywhere, but this stack overflow post suggests that the 0th and 1st indices are reserved. https://stackoverflow.com/a/11118442. Strange design, but it seems to be the expected behavior. Based on my understanding, it could be safer to auto populate the reserved styles, but haven't looked into this much. |
thanks @blargg for the link |
Hello,
I wanted to create a xlsx file with a date column. And no other column, just to try.
In my first attempt (see below), I set the number format id in the 0-th component of the field
_styleSheetCellXfs
of theStyleSheet
. That does not work: the xlsx file is created, but the numbers are not formatted as dates.My second attempt (see below) was successful. I let the 0-th component of
_styleSheetCellXfs
as an emptyCellXf
, and I put theCellXf
with the number format id in the 1-th component.Is it something expected ? What is the role of the 0-th
CellXf
if we can't use it to define a style ?First attempt:
Correction:
The text was updated successfully, but these errors were encountered: