Replies: 3   Views: 630
Uncaught exception 'com_exception' microsoft word
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 vazel  · 21-11-2018 - 14:53

We made the copy from one server to another (Apache), and the following instructions no longer work, we have tried various guides but they do not work

Error code: Fatal error: Uncaught exception 'com_exception' with message 'Source: Microsoft Word Description: This command is not available because no document is open

We Have

  • Microsoft Office 2007
  • Windows Server

The code:

$word = new COM("Word.Application") or die("Unable to instantiate Word");



    $bookmarkname = "mese";

    $objBookmark = $word->ActiveDocument->Bookmarks($bookmarkname);


The exception is the line with ActiveDocument Any solution?