 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
ali
Joined: 21 Feb 2008 Posts: 8
|
Posted: Fri Feb 22, 2008 7:08 am Post subject: ExcelWriter: BgColor of cell is not changing |
|
|
When i set BgColor of cell in format, it only changes to a dark gray color & does not set any specific color which is given as parameter.
please guide me,
thanks, |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1000
|
Posted: Fri Feb 22, 2008 8:48 am Post subject: Re: ExcelWriter: BgColor of cell is not changing |
|
|
| ali wrote: | | When i set BgColor of cell in format, it only changes to a dark gray color & does not set any specific color which is given as parameter. |
Show your code (at least the line in which you set the format) ...
Did you read the page about the allowed color values? |
|
| Back to top |
|
 |
ali
Joined: 21 Feb 2008 Posts: 8
|
Posted: Fri Feb 22, 2008 10:08 am Post subject: |
|
|
i tried
$bg_format = $workbook->AddFormat(array('align' => 'left', 'size'=>9, 'BgColor'=>18 ));
and
$bg_format = $workbook->AddFormat(array('align' => 'left', 'size'=>9, 'BgColor'=>red)); |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1000
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|