Forum


Replies: 7   Views: 1929
Importchartstyle from example doesn't work?
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 admin  · 24-01-2020 - 15:47

Hello,

For this task we recommend you to use mergeDocxAt , which allows getting a DOCX content with the relationships (charts have internal relationships) and add it after a specific position of the document.

On the previous API page and the package you can find a sample of using it. DOCXPath folder includes many other samples to illustrate using the referenceNode option.

If the DOCX contains more content than the chart to be imported, you can use removeWordContent to clean it before importing it.

Regards.