hi i have a problem while i using the phpword

Dec 11, 2012 at 3:40 AM

hi i have a problem while i using the phpword.

my code like this:

require_once '../PHPWord.php';
$value1 = 'i need break in this paragraph, how can i do it? thanks!'
$PHPWord = new PHPWord();

$document = $PHPWord->loadTemplate('Template.docx');

$document->setValue('Value1', 'Sun');

$document->save('Solarsystem.docx');

 

i need wrap in the $value1 , who can help me? thank you very much.

Dec 11, 2012 at 3:43 AM

变量$value1的值文本很长,需要在里面设置段落和换行,怎样操作啊?