Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting comment box size or style (font size) in comment?

Tags:

php

phpexcel

Is it possible now to define size of comment box generated with PHPExcel? Or to define its style?

like image 781
user198003 Avatar asked Jul 16 '13 18:07

user198003


1 Answers

The width and height can be changed using setWidth and setHeight commands, as follows:

$objPHPExcel->getActiveSheet()->getComment("A1")->setWidth("400px");

$objPHPExcel->getActiveSheet()->getComment("A1")->setHeight("250px");
like image 118
Dan Avatar answered Oct 19 '22 23:10

Dan