alignment vertical-top does not work

Topics: User Forum
Mar 14, 2010 at 2:08 PM
Edited Mar 14, 2010 at 4:43 PM

Hello,

I tried each:

$objPHPExcel->getActiveSheet()->getStyleByColumnAndRow($col, $row)->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::VERTICAL_TOP);
$objPHPExcel->getDefaultStyle()->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_TOP);

but I cannot see the desired effect with the excel file output. it does not work with HTML output as well but it is OK with PDF output.

Thanks

 

Developer
Mar 15, 2010 at 11:40 PM
$objPHPExcel->getActiveSheet()->getStyleByColumnAndRow($col, $row)->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_TOP);