Skip to content

Conversation

@johnnyliang7
Copy link

This PR add ForceString flag to return raw cell values, this gives user an “opt-out” of all of the library’s automatic type-conversions and just hand you back the raw value from the cell XML

  • ForceString bool: new field on XlsxFile (default false).
  • SetForceString(force bool): method to toggle forcing raw strings.
  • getCellValue change: if ForceString==true, always return *r.Value (no numeric/date/shared-string conversion).
  • Tests added (TestGettingValueFromRawCell_ForceString): verifies raw output for numeric, date-style, shared-string, and inline-string cells when ForceString is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants