setReadDataOnly (TRUE) means only reading data from cells, but none of the styles ... and as background colors are not part of the style, the reader will ignore the background colors when it loads the file ... if the fill style is not loaded, then call $ objPHPExcel-> getActiveSheet () β getStyle ('A1') β getFill () will return the default fill style and colors.
Download the file using setReadDataOnly (FALSE) and you should find its work
EDIT
This is beyond the scope of PHPExcel .... everything is populated using DDE, including most of the style, so the primary fill color is simple (as returned by the PHP call toExcel getFill) to an external TOS executable. exe fills in the data and sets styles accordingly. Your only option here is to use COM so that the workbook runs in MS Excel itself.
source share