Open ChALkeR opened 11 years ago
The question is: is PHPExcel supposed to manage such things or not?
No, it seems that I was wrong about how this is supposed to work. Better look at the reference.
For example, PHPExcel_Writer_HTML does not merge such cells.
The title pretty much says it.
There are at least two ways of merging cells in Excel2007:
mergeCells
→mergeCell
centerContinuous
horizontal alignment.The latter is not supported for reading in PHPExcel.
See
18.18.40 ST_HorizontalAlignment (Horizontal Alignment Type)
fromISO/IEC 29500-1:2012
.In short: if some consecutive cells in one row have an exact same style id that refers to a style that has the horizontal part of the alignment set tocenterContinuous
, that cells should be treated as a merged cell with acenter
horizontal alignment.The alignment merges the cells with the same style id.