$objPHPExcel->getActiveSheet()->SetCellValue('A1', 'Name');
1.How I set this to bold?
2.How I set the width(I will have some dinamic text in the cells!)?
I have read the documentation, but I haven't found any solutions!
Bold:
$objPHPExcel->getActiveSheet()->getStyle('A1')->getFont()->setBold(true);
Width:
$objPHPExcel->getActiveSheet()->getCell('A1')->setWidth(15);
Not tested though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With