Forum


Replies: 5   Views: 6534
Com class doesn't open word file correctly
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  · 20-03-2015 - 08:00

Hello, That error happens when the server is unable to read the source document. Please do these tests: 1. Check that you're using \\ as the file path. As example: C:\\Documents\\document.docx If it doesn't work escape all '\': C:\\\\Documents\\\\document.docx 2. Try setting ActiveDocument instead of Documents[1]. This is: $MSWordInstance->ActiveDocument->SaveAs($docDestination, $code[$extension]); in the MSWordInterface class. Regards.