Questions tagged as 'phpword'

0
answers

Center title and shading the row in phpWord

I am trying to add titles to my Word document but it does not appear centered or shading the line with PhpWord, I try it in the following way: $phpWord->addTitleStyle(1, array('size' => 12, 'Arial' => true,'bold' => true,'align'=&g...
asked by 24.10.2018 / 00:53
0
answers

How to display a text with the format 'bTEXTO / b' in word with PHPWord

My Code: <?php require_once '../PHPWord-master/src/PhpWord/Autoloader.php'; \PhpOffice\PhpWord\Autoloader::register(); use PhpOffice\PhpWord\PhpWord; use PhpOffice\PhpWord\Style\Font; //Instancia phpWord. $documento = new PhpWord();...
asked by 19.10.2018 / 00:43
0
answers

Align text in a cell of a table with PhpWord

I have this code: $styleTable = array('borderSize' => 1, 'borderColor' => '000000' ,'align' => 'center'); $cellRowSpan = array('vMerge' => 'restart', 'valign' => 'center', 'bgColor' => 'FFFFFF'); $cellRowContinue = array('vMe...
asked by 07.08.2018 / 20:35
0
answers

Solve: Content not readable in WORD, when making a Report with PHPWORD

Hi, I have a problem, I'm working with PHPWORD, more specifically with TemplateProcessor, all right in the code apparently, but when I download my report it does not open and I get the following message that I attached in image: Here is the...
asked by 08.05.2018 / 14:20
1
answer

Table in phpword

Could you show me how I can compile the following table with the phpword library? I have dealt with the examples that it brings but I could not? Awaiting your help, thank you very much. This is my code $fancyTableStyle = array('borde...
asked by 10.05.2018 / 15:59
0
answers

Corrupt file with PHPWord

I am working with the PhpWord library and the templateProcess.php file to generate documents based on templates, now it works correctly if I only add text. However when wanting to add images the file is generated as corrupt. Has anyone hap...
asked by 13.07.2017 / 21:56