Quantcast
Channel: PHPWord
Viewing all articles
Browse latest Browse all 450

New Post: Calling addText() method gives a line break at the end of string

$
0
0
My workaround is to use a template that has all the formats I need.

$PHPWord = new PHPWord();
$document = $PHPWord->loadTemplate('Template.docx');
$document->setValue('XXXX', 'Sun');
$document->save('doc.docx');

Viewing all articles
Browse latest Browse all 450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>