Skip to content
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

[BUG] OpenXML does not correctly read DataType #73

Closed
Freymaurer opened this issue Oct 13, 2023 · 0 comments
Closed

[BUG] OpenXML does not correctly read DataType #73

Freymaurer opened this issue Oct 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Freymaurer
Copy link
Collaborator

In Xlsx DataType is written as t="s" attribute in cells (<c></c> tag), in this example DataType is string.

  • Default for DataType is Number NOT empty as previously implemented.

  • DateTime is also Number so not t attribute . Instead there will be an s attribute which references cellXfs in styles.xml.

  • The number of the s attribute is the index in the cellXfs tag.
    image
    image

  • numFmtId="14" is date time.

  • The number value in the sheet.xlm represent days since 1900 and can be converted with .NET System.DateTime.FromOADate (thank god)

@Freymaurer Freymaurer added the bug Something isn't working label Oct 13, 2023
@HLWeil HLWeil assigned HLWeil and unassigned HLWeil Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants