Hi, I have the same problem. add 0.71 to the excel cell width value and set this value to
$objPHPExcel->getActiveSheet()->getColumnDimension('A')->setWidth(10);
for example: Column width = 3.71 (excel value)
specify column width = 4.42
will provide an output file with the same cell width.
$objPHPExcel->getActiveSheet()->getColumnDimension('A')->setWidth(4.42);
hope this help
King Alawaka Feb 08 '15 at 21:05 2015-02-08 21:05
source share