-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SetCellValue changes background color of a Cell to White when writing a time.Time value into a preformatted Table #2014
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
Comments
Thanks for your feedback. I fixed this, please upgrade to the master branch code by |
Hey, is it planned to have a new release soon? So far I pinned my dependency for production to |
Next version will be released in 2025, before that you could be to use the code on the master branch version, with the Go module to lock the version. |
Any plans already for a release? |
The next version 2.9.1 will be released on May 15th, 2025. |
Uh oh!
There was an error while loading. Please reload this page.
Description
When writing date values to a table in a worksheet using predefined table format/style, then excelize sets a white background color.
It seems to be a new bug with excelize2.9.0, because in 2.8.1 and before its working.
Steps to reproduce the issue:
OpenReader
that fileString
value and atime.Time
usingSetCellValue
SaveAs
that fileSee a full reproducer here: https://github.com/sonic-martin/excelize-backgroundcolor-reproducer
Describe the results you received:
The cell with the Date value has a white background color.
(Screenshot with an excel file created with Excelize 2.9.0)
Describe the results you expected:
Both, the cell with the String value and with the Date value, following the predefined table format/style from the template excel file.
(Screenshot with an excel file created with Excelize 2.8.1)
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Ubuntu in WSL2
Further remark
Is this maybe related to the code changes for fixing #2004?
The text was updated successfully, but these errors were encountered: