Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: phpExcel getColumnDimension("A")->getWidth() always return -1

$
0
0
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).

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>