-
-
Notifications
You must be signed in to change notification settings - Fork 638
Writing into cells with defined format #182
Comments
Do you mean controlling the style for each cell separately instead of each row? |
@adrilo I believe that is what @vika8713 is asking for. This is basically covered in #124 I think. I have a use case for this, where I want to create a "heatmap": a carpet of values (with background color) in a spreadsheet. In addition to #124 I could think of lightweight "Cell Objects" that contain the cell value, the value type, styling, cell comments, other metadata - that could be passed in an array to Writer::addRows(). |
I would love to have the opportunity to be able to format each cell individually. |
Since the Styling currently is rather limited I'll specify that I would really love to be able to add to current styling: background colour, borders, cell comments. BTW. I love this code. I have just gone through 4-5 different Excel readers/writers over past weeks that all seem to run into memory issues very quickly. This project seems exactly what I was looking for. If only had also cell formatting it could be used also in analysis type of tasks instead of raw import/export :) |
@adrilo Can we colaborate on how to proceed with the cell styling/formatting? My first instinct was to make the concept of cells a "first class citizen" and skip the "column styling" approach like documented here #209 (comment). However I do not want to take another shot at this and see if it fits in a PR. Have you generated any ideas on how to proceed? Are there any "junior" tasks that can be adressed on the way to 3.0? |
Hey @madflow, thanks for following-up on this issue. Sorry it took so long to get back to you! I was thinking of the same approach, where instead of only accepting scalars or DateTime, the Now, how to get there is interesting. I think we should set up another branch where we can start developing 3.0 features. And in order to add support for cell styling, it can be split into 2 main tasks:
What do you think? |
Sounds good to me! How can contribution look like? As the Product Owner ;) maybe you could log some smaller issues? |
Hi all! someone know the status of this feature?? this library only need this to be perfect!! Thanks |
Hey @madflow and @davidNieves !
And later, we can add support for styling. @madflow are these tasks small enough? |
@adrilo Yes - small enough ;) |
Spout_NAQK_Hack.zip 2 - Spout\Writer\Common\Internal\AbstractWorkbook.php 2.2 - new function registerCellStyle To use : |
Fixed in #485 |
There would be very nice to have an opportunity to manage cell format while writing into. Now every entry has a general format (at least in .xlsx files).
The text was updated successfully, but these errors were encountered: