Possible to ensure columns are max width and fit all content?

Topics: Developer Forum, User Forum
Jun 18, 2013 at 11:15 PM
Hi there,

Is it possible to generate a spreadsheet and ensure that the columns are the full width of the content so the user doesn't have to drag the columns to see all of the content?
Jun 19, 2013 at 4:34 AM
You can use (from doc 4.6.28):
$objPHPExcel->getActiveSheet()->getColumnDimension('B')->setAutoSize(true);