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

Support an option to get formatCellValue in readExcel #669

Open
koperagen opened this issue Apr 18, 2024 · 0 comments
Open

Support an option to get formatCellValue in readExcel #669

koperagen opened this issue Apr 18, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@koperagen
Copy link
Collaborator

You might want to get cell value not how it is represented in the xlsx file and seen by Apache Poi, but as a String
There's method that does exactly this
We can provide an argument to specify what columns should be read by value methods like stringCellValue, numericCellValue, etc. and by formatCellValue

val style: CellStyle = getCellStyle()
val dataFormatter = DataFormatter()
val formattedCellValue = dataFormatter.formatCellValue(this, style)
return formattedCellValue
@koperagen koperagen added the enhancement New feature or request label Apr 18, 2024
@koperagen koperagen added this to the 0.14.0 milestone Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant