Answer the question
In order to leave comments, you need to log in
How to write underlined text in xls?
I use PHPExcel, I need to do this:
tags naturally do not work. the design of the cells is not suitable, because the text is in one.
what to do?
Answer the question
In order to leave comments, you need to log in
First mergeCells, then getStyles("a23:m23")-> and assign an underline. There is an answer
on SO - it might work.
$objRichText = new PHPExcel_RichText();
$objRichText->createText('This text is ');
$objBold = $objRichText->createTextRun('bold');
$objBold->getFont()->setBold(true);
$objRichText->createText(' within the cell.');
$objPHPExcel->getActiveSheet()->getCell('A18')->setValue($objRichText);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question