Invalid conversion when I use setCellValue

Topics: Developer Forum
Apr 29, 2011 at 1:47 PM

 

Hi I have got strange issue,
I use this code to set value to cell, 
$objRichText = new PHPExcel_RichText();
$objRichText->createText('Mystical Land/NEONGA');
$objWorksheet->setCellValue($cell_index, $objRichText);

if I put to cell "Mystical Land/NEONGA" it works properly
it is dump result <td> (A4) 279</td><td> (B4) Mystical Land/NEONGA sheet://'279 A Mystical Land_NEONGA'!A1</td><td> (C4) active</td>
but if I put "A Mystical Land/NEONGA" it converts field to date
it is dump result <td> (A4) 279</td><td> (B4) 40662sheet://'279 A Mystical Land_NEONGA'!A1</td><td> (C4) active</td>
Could you help me with this ? How can I quote data and disable this behavior
With Regards Igor