PHP Classes

Added some features

Recommend this page to a friend!

      Excel Writer  >  All threads  >  Added some features  >  (Un) Subscribe thread alerts  
Subject:Added some features
Summary:colspan, bgcolor support
Messages:3
Author:Jeanneret Cédric
Date:2007-06-07 13:17:08
Update:2009-02-19 05:54:08
 

  1. Added some features   Reply   Report abuse  
Picture of Jeanneret Cédric Jeanneret Cédric - 2007-06-07 13:17:08
Hello!
First, thanks a lot for this class.
Then, I had to add some support for this, such as colspan and background color.
to do that, just edit class file, and modify function "writeCol()" in such manner :

function writeCol($value='', $options='')
{
if($this->state!="OPENED")
{
$this->error="Error : Please open the file.";
return false;
}
fwrite($this->fp,"<td class=xl24 width=64 $options>$value</td>");
}

It allows you to:
1- insert null values (for an empty line/case for example)
2- use options such as colspan=XX bgcolor=#xxxxxx

easy, but seems nobody has done it, or talked about it ^^

  2. Re: Added some features   Reply   Report abuse  
Picture of krish krish - 2009-02-19 05:54:08 - In reply to message 1 from Jeanneret Cédric
merci beaucoup Cédric,

thx a lot mate just what I was looking for,

Cheers

  3. Re: Added some features   Reply   Report abuse  
Picture of Zoltán Szabó Zoltán Szabó - 2017-02-21 14:54:41 - In reply to message 1 from Jeanneret Cédric
bgcolor doesn't work :( any idea?