$objPHPExcel->getActiveSheet()->SetCellValue('A1', 'Name');
1.How did I make it bold?
2.How to set the width (I will have some dynamic text in the cells!)?
I read the documentation, but I did not find any solutions!
Fatty
$objPHPExcel->getActiveSheet()->getStyle('A1')->getFont()->setBold(true);
width:
$objPHPExcel->getActiveSheet()->getCell('A1')->setWidth(15);
Not tested.
$ col 0 based
$ worksheet-> getColumnDimensionByColumn ($ COL) → setWidth ($ width);
Hello 2009
Source: https://habr.com/ru/post/1724916/More articles:Download a file without html using HtmlUnit - javaТолько увеличить номер сборки для официального выпуска? - build-processhow grep perl hash keys to an array? - perlANTLR3 Syntax Reference? - antlr3Преобразование проекта Makefile (make) без GUI в KDevelop - cIs there a list of reserved words in ANTLR grammars? - antlrC ++ Duplicate Symbol error when defining a static class variable in Xcode - c ++Install jvm Java server on 32-bit Windows systems - javaWhat is the difference between 'eq' vs '==' in PHP? - operatorsShould I place a try ... catch block in the destructor if I know that my function will not throw an exception - c ++All Articles