PHPExcel Make first row bold

后端 未结 10 879
猫巷女王i
猫巷女王i 2020-12-13 03:34

I am trying to make cells in first row are bold.

This is the method I have created for that purpose.

function ExportToExcel($tittles,$excel_name)
 {
         


        
10条回答
  •  悲哀的现实
    2020-12-13 03:45

    $objPHPExcel->getActiveSheet()->getStyle('1:1')->getFont()->setBold(true);
    

    That way you get the complete first row

提交回复
热议问题