Problem to fill cell whith a text value

Topics: Developer Forum, User Forum
May 22, 2013 at 8:52 AM

I have an Excel File (created with Excel 2010).

I want to fill a cell with the value '0001'. The cell's format is 'text'.

$value = "0001";
I use : $sheet->setCellValue("A1",$value);

Doesn't work. I obtain : "1" in A1

May 22, 2013 at 9:24 AM
May 22, 2013 at 9:47 AM
Apr 29, 2014 at 12:32 PM
MarkBaker wrote:
There are days when I wonder why I bother writing documentation:
This bash on him is not fair, I too have been looking for this information, and could not find it in documentation, I checked the 4 doc files bundled WITH the PHPexcel release, specifically the one called "PHPExcel developer documentation.doc" - which does not include the chapters you linked to above.

I also looked here:
And as you can see, no reference in the Documents section to the github documentation...
I only found the solution you documented, elsewhere in a forum search here someone discovered that Explicit function, without seeing your documentation...

If you want it to be easily found, please link to it on the project's home page, AND include it in the downloadable bundle :)