background color

Topics: Developer Forum
Jun 13, 2008 at 3:21 PM
Hi Marteen,

i'm testing the version 1.6.1. Good job !

I notice a very strange thing :
when I set the background color of a cell to grey with the Excel tools in the xlsx from which I buid the excel file,  this cell becomes black after the reader php process.
I can send you my files if you want.

Regards,

Laurent
Coordinator
Jun 13, 2008 at 3:36 PM
Can you please send me the items? (or create a new issue and attach the example to the issue)

Thanks!
Coordinator
Jun 18, 2008 at 10:17 AM
Try changing the "gray" color on your sheet, it semes that PHPExcel can not determine the color to use.
Jun 20, 2008 at 9:46 AM


maartenba wrote:
Try changing the "gray" color on your sheet, it semes that PHPExcel can not determine the color to use.


Hi Marteen,

its works with any other color !
I change to :
$objPHPExcel->getActiveSheet()->getStyle('D1')->getFill()->getStartColor()->setARGB('B7B7B7');

and it's ok now.

Thanks.

Laurent.