Hi, I'm new in phpExcel and tring learn it. I have some problem with getting column width. In my possible tables there is a column with too high width. But it column may be change from file to file. so, I cann't hard code it's position. That is why I created a loop and trying to get width of each column. But method getWidth() from ColumnDimension.php always returns me -1; How can I solve this problem?
$colWidth = $objectSelectedWorksheet->getColumnDimension("$strCol")->getWidth();
where $objectSelectedWorksheet - is selected worksheet, $strCol - generated string name of column (i.e. A, B, etc).