I am using the PHPExcel add-on class for php. It should allow you to programatically do everything you can do in a MS Excel spreadsheet.
I know in excel you can select the entire worksheet and then right click between any two columns and it will autosize the entire sheet. I am looking for that same function in phpExcel.
I am a little fuzzy on how to write the code for autosizing the columns in the spreadsheet.
I know this code will autosize column A
$objPHPExcel->getActiveSheet ()->getColumnDimen sion('A')->setAutoSize(tr ue);
I see this function in the documentation:
PHPExcel_Worksh eet_ColumnDimen sion setAutoSize( [bool $pValue = false])
Question: How do you apply this to the entire worksheet, instead of cycling through each column?
I know in excel you can select the entire worksheet and then right click between any two columns and it will autosize the entire sheet. I am looking for that same function in phpExcel.
I am a little fuzzy on how to write the code for autosizing the columns in the spreadsheet.
I know this code will autosize column A
$objPHPExcel->getActiveSheet ()->getColumnDimen sion('A')->setAutoSize(tr ue);
I see this function in the documentation:
PHPExcel_Worksh eet_ColumnDimen sion setAutoSize( [bool $pValue = false])
Question: How do you apply this to the entire worksheet, instead of cycling through each column?
Comment