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

New Post: Help needed on addText()

$
0
0
Hi

I just started using PHPWord, which i think is awesome. I'm trying to put the following text (using custom font) in the word file:

$fontStyleTitle = array('name'=>'Times New Roman', 'color'=>'000000', 'size'=>12, 'bold'=>true);

$PHPWord->addFontStyle('titleStyle', $fontStyleTitle);
$string = "FORM A – CHECKLIST TO BE COMPLETED FOR C1GBL’S APPLICATION";

$text = $section->addText($string, 'titleStyle');

But the output is:

FORM A – CHECKLIST TO BE COMPLETED FOR C1GBL\’S APPLICATION

I don't know how to fix this. Can anyone help? Thanks in advance.

Ashis

Viewing all articles
Browse latest Browse all 450

Trending Articles



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