I just upgraded my phpExcel classes from 1.7.0 to 1.7.2 and now get the following exception thrown when writing an Excel5 document.
Fatal error: Uncaught exception 'Exception' with message 'AutoSize method is set to approx' in \PHPExcel\Shared\Font.php:269
#0 \PHPExcel\Worksheet.php(636): PHPExcel_Shared_Font::calculateColumnWidth(Object(PHPExcel_Style_Font), 'name', 0, Object(PHPExcel_Style_Font))
#1 \PHPExcel\Writer\Excel5\Worksheet.php(389): PHPExcel_Worksheet->calculateColumnWidths()
#2 \PHPExcel\Writer\Excel5.php(218): PHPExcel_Writer_Excel5_Worksheet->close()
Looking at the code indicates a solution, but only the exception is thrown. Reading the forum and bug tracker there seems to be some activity around setAutoSize(true), but nothing specific to my issue.
Each column in my document has the setAutoSize(true) method called, in this fashion;
Can I assume that by not setting setAutoSize would avoid the exception? Is there a better method to set auto sizing on all fields or is there a non-committed fix floating around that would "use approximation" instead of throwing this exception?
Many thanks, awesome product!!!