Replies: 3   Views: 2187
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?




Posted by admin  · 21-11-2018 - 15:01


What license and version of phpdocx are you using? That code doesn't seem from phpdocx.


Posted by vazel  · 21-11-2018 - 15:05

Office 2007 

Windows Server 2003 or 2008.

Is not phpdocx sorry, I have a wrong forum and i have not found a solution in any site. Is php vanilla

Posted by admin  · 21-11-2018 - 15:06


This is a forum only for phpdocx. Sorry but we can't help you with your issue unless you have bought a license.