i have problem with php excel,
i want to make new line in one cell but i can't, i have tried using
or <br /> but itsn't work. this my code:
$objPHPExcel->getActiveSheet()->setCellValue('H5', 'Hello
World'); // i need this show in two line
$objPHPExcel->getActiveSheet()->getStyle('H5')->getAlignment()->setWrapText(true);
fyi: my format excel is xls not xlsx.
many thanks :)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…