Forum


Replies: 2   Views: 122
The open xml file xxx.docx cannot be opened

Posted by everrall  · 07-08-2019 - 09:46

Hello,
I have some problem with generating DOC file with png/jpeg images using phpdocx 9.0.
It looks like file has problems with formatting and can be opened in OpenOffice with formatting glitches.

https://monosnap.com/file/i82kkY6j49Gek3f4A8kqcCgzaqlQ9k

However, this file can't be opened in Microsoft Word and I've received following error: 

https://monosnap.com/file/umUVqr2zeYLtqqJVl5eMI1PwIuPFzw

"The Open XML file xxx.docx cannot be opened because there are problems with contents or the file name might contain invalid characters  (for example, /\). 
Details 

Attribute '%1' has an invalid value according to the DTD/ Schema. Location: 2"

Any help with this will be appreciated!