inserting a newline into the cell problem again

Topics: Developer Forum
Nov 29, 2011 at 12:58 PM
Edited Nov 29, 2011 at 1:11 PM

Hi,

I have read a few discussions about it and still have a problem to insert multiline text into the cell.
I know about double quotes vs single-quotes issues...

Can anyone tell me what else matters and why the code:

    $objPHPExcel->getActiveSheet()->SetCellValue("A1", "Alfa\nBeta");

inserts something else but not a newline?

PHPExcel 1.7.6
Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5

bighen