Thank you for your reply, admin. please look the follow example:
$text=array();
// add textFragment
$textstr='PHPDOCX is a very good software! So we have bought the pro 5.0.';
$textFragment = new WordFragment($docx);
$textFragment->addText($textstr);
$text[]=$textFragment;
// add tableFragment
$tableFragment = new WordFragment($docx);
$tabeleArray=array(
array('11','12'),
array('21','22')
);
$tableFragment->addTable($tabeleArray);
$text[] = $tableFragment;
$docx->addText($text);
run the up example, the table can't display properly. I'm very sorry, and always disturb you.