Forum


Replies: 8   Views: 4584
Word error message when opening document
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 tonioseiler  · 21-05-2015 - 08:53

After removing the dump, the error is still there. What i finally found out: My Document Structure is like this: Document -> table -> tablerow -> image -> something I am adding the image with: $imageFragment = new WordFragment($doc); $imageFragment->addImage($paramsImg); array_push($tableValues, array( array('value' => $imageFragment, 'borderTopSpacing' => 10, 'borderTop' => 'single', 'borderTopWidth' => 4, 'borderTopColor' => 'DDDDDD'), array('value' => $fieldFragment, 'borderTopSpacing' => 10, 'borderTop' => 'single', 'borderTopWidth' => 4, 'borderTopColor' => 'DDDDDD')) ); $doc->addTable($tableValues, $paramsTable); If I replace the addImage by addBreak, no error occurs...... It seems to have something to do with the image