Re: Excel Cell Formatting Removing My ZERO
| From: | Tom Synnott | Date: | Mon, 02 Jul 2007 06:18:12 +0000 |
| Subject: | Re: Excel Cell Formatting Removing My ZERO | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27605@lists.php.net to get a copy of this message | ||
Also another question but on the same topic... Does anyone know how I can format the cell? So if I do have some numbers as ########## and some as #### ### ### they can all be set once in Excel to look like #### ### ###...
Thanks!
On 02/07/2007, at 4:04 PM, David Sanders wrote:
Tom Synnott wrote:How do I do that? Sorry am a total noob... I currently have this: $colData =& $xls->addFormat(); $colData->setAlign('left'); $sheet->write($i,6,"{$row['MobileNumber']}",$colData);write() tries to automatically determine the format. If you use writeString() then it will force the cell to be a label :) --David Sanders shangxiao--PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php