Bug #3514 [NEW]: Excel Cell Formatting to Text
| From: | ankush dot mohile at patni dot com | Date: | Fri, 18 Feb 2005 09:39:54 +0000 |
| Subject: | Bug #3514 [NEW]: Excel Cell Formatting to Text | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5546@lists.php.net to get a copy of this message | ||
From: ankush dot mohile at patni dot com
Operating system: Linux
PHP version: 5.0.2
Package: Documentation
Bug Type: Bug
Bug description: Excel Cell Formatting to Text
Description:
------------
I am trying to make a certain cell of the excel spreadsheet as Text so I
could display a number with a leading zero. e.g. 07432 instead of 7432
Reproduce code:
---------------
$text_format =& $workbook->addFormat();
$text_format->setNumFormat('@');
$worksheet->write($i,14,"' ".$colO,$text_format);
Expected result:
----------------
expected result 07432
Actual result:
--------------
produces result as '07432
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=3514&edit=1
--