-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dad8f49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @xuri ,
Excel has these types
would it be possible to align with excel types?
I think the cell format is also important, as example a cell with type "currency" needs to specify also which currency
dad8f49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your feedback,
GetCellType
following the possible enumeration values for cells in OOXML spec.dad8f49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the tip, is it correct there is no method at the moment to get the cell metadata?
Example, there is the need to extract from an Excel file columns with the correct data type to be manipulated after
Some columns are "Accounting", other "Currency", other "Number".
For a type "Currency / Accounting" it is important to get which Currency (EUR, USD, ...)
For a number the precision to distinguish integer from float
Does the library support this use case? I checked the https://xuri.me/excelize/en/cell.html and I have not found this info
dad8f49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The number format info was storage in the inner style, this library just support to get style ID, but doesn't support to extract style details by cell currently.