Forum


Replies: 2   Views: 1198
Exception on importstyles() with version 10.0, works in 9.5
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  · 10-09-2020 - 06:54

Hello,

You are right, there was a minor bug in the importStyles method. All phpdocx 10 packages (Basic, Advanced and Premium) has been fixed with the correction. If you don't want to download the new package, please edit CreateDocx.php (classes folder in the classic package or Classes/Phpdocx/Create in the namespaces package), and in the importStyles method replace the following line:

$this->_wordStylesT->loadXML($zipStyles->getContent('word/numbering.xml'));

with:

$this->_wordStylesT->loadXML($zipStyles->getContent('word/styles.xml'));

We apologise for any inconvenience caused

Regards.