Hello,
Ok thanks for the precision.
I put the chart in a new document but how can I grab the chart and put it at a specific place in my original document ?
I've tried this.
$docOriginal = new CreateDocxFromTemplate('Original.docx');
$docChart = new CreateDocxFromTemplate('Chart.docx');
$referenceNode = array(
'type' => 'chart',
'occurrence' => 1,
);
$Contents = $docChart ->GetWordContents($referenceNode);
$docOriginal ->replaceVariableByWordFragment(array('MYCHART' => $Contents[0]), array('type' => 'block'));
i've print_r(Contents) ,he has one key but it's empty .
Can you tell me how to do ?
Thanks