PHP Excel - Apply styles and set cell width and cell height to cell generated dynamically
2 participantes
Página 1 de 1
PHP Excel - Apply styles and set cell width and cell height to cell generated dynamically
How to apply styles and set cell width and cell height to cell generated dynamically?
rafaelsp- Mensagens : 2
Data de inscrição : 19/07/2015
Re: PHP Excel - Apply styles and set cell width and cell height to cell generated dynamically
You can use
or define auto-size:
- Código:
$objWorksheet->getActiveSheet()->getRowDimension('1')->setRowHeight(40);
$objWorksheet->getActiveSheet()->getColumnDimension('A')->setWidth(100);
or define auto-size:
- Código:
$objWorksheet->getRowDimension('1')->setRowHeight(-1);
Re: PHP Excel - Apply styles and set cell width and cell height to cell generated dynamically
Great. It's working for me. Thank you!
rafaelsp- Mensagens : 2
Data de inscrição : 19/07/2015
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|