Forum


Replies: 1   Views: 4386
How do i do bold text using the addtext method in pro 3.1
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by SkariD  · 26-01-2015 - 17:56

I followed your instructions on this page: http://www.phpdocx.com/api-documentation/word-content/add-paragraph-text-Word-document-with-PHP But this is apparently not the way to do it in 3.1 (BTW, example #3 shows the code for example #2 again) I have scoured this forum and others. This question is asked many times but is never answered. The only answer that I have seen is to upgrade. But no mention of whether the upgrade is covered under the license we already have. Here is a section of my code. Linebreak works just as the page above says it should, but bold does not. $text = array(); $text[] = array('text' => $prop_title.' Title: ', 'bold' => true); $text[] = array('text' => $p_row['proposal_title'], 'lineBreak' => 'after'); $text[] = array('text' => $prop_title.' #: ', 'bold' => true); $text[] = array('text' => $prop_num, 'lineBreak' => 'after'); $text[] = array('text' => 'Sequence #: ', 'bold' => true); $text[] = array('text' => $p_row['sequence'], 'lineBreak' => 'after'); $text[] = array('text' => $presenter_title.'\'s Name: ', 'bold' => true, 'lineBreak' => 'before'); $text[] = array('text' => $p_row['first_name'].' '.$p_row['last_name'], 'lineBreak' => 'after'); $text[] = array('text' => $presenter_title.'\'s Company/Employer: ', 'bold' => true); $text[] = array('text' => $p_row['organization'], 'lineBreak' => 'after'); $text[] = array('text' => $presenter_title.'\'s Title: ', 'bold' => true); $text[] = array('text' => $p_row['title'], 'lineBreak' => 'after'); $text[] = array('text' => $presenter_title.'\'s Company/Employer: ', 'bold' => true); $text[] = array('text' => $p_row['organization'], 'lineBreak' => 'after');