-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Changing grey background to black in Excel template #2147
Comments
There is problem with XLS. Converted to XLSX will resolve the issue I think. |
Converted to XLSX original file
reult from xlsx |
Can you narrow this down for me: is this a Reader or a Writer issue? Load the spreadsheet, and var_dump the background colour of one of those cells, if it's black at that point, then the problem is in the Reader, if it's still grey and only turns the cell to black when you save, then the problem is in the Writer.... that simple test halves my investigation. |
This is:
What is the expected behavior?
Not change the cell background color
What is the current behavior?
Grey background cells are changing to black
What are the steps to reproduce?
Create spreadsheet with grey background cells
Use IOFactory::load to load the spreadsheet
Use the Xls writer to write a new spreadsheet
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
Which versions of PhpSpreadsheet and PHP are affected?
Works fine in 1.16.0. I noticed it broke in 1.18.0. Didn't test 1.17.0.
I did look closer and 1.16.0 has a different shade of grey than what is originally there, but it's not doing what the latest version is doing which turns it to black.
The text was updated successfully, but these errors were encountered: