Questions tagged «phpspreadsheet»

7
使用PHPExcel设置电子表格单元格的宽度
我正在尝试通过以下方式设置用PHPExcel生成的Excel文档中单元格的宽度: $objPHPExcel->getActiveSheet()->getColumnDimensionByColumn('C')->setWidth('10'); $objPHPExcel->getActiveSheet()->getColumnDimensionByColumn('C')->setAutoSize(false); 但这不起作用。 我需要在这里调用什么方法?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.