Setting width of spreadsheet cell using PHPExcel

后端 未结 7 974
萌比男神i
萌比男神i 2021-01-31 13:20

I\'m trying to set the width of a cell in an Excel document generated with PHPExcel with:

$objPHPExcel->getActiveSheet()->getColumnDimensionByColumn(\'C\')         


        
7条回答
  •  死守一世寂寞
    2021-01-31 14:07

    Tha is because getColumnDimensionByColumn receives the column index (an integer starting from 0), not a string.

    The same goes for setCellValueByColumnAndRow

提交回复
热议问题