note 40468 added to function.com-get

From: Date: Thu, 04 Mar 2004 15:15:32 +0000
Subject: note 40468 added to function.com-get
Groups: php.notes 
Request: Send a blank email to php-notes+get-66248@lists.php.net to get a copy of this message
I try to connect to the msword by using the next code $word = new COM("word.application") or die("Unable to instanciate Word"); echo "Loaded Word, version {$word->Version}\n"; //bring it to front $word->Visible = 1; //open an empty document $word->Documents->Add(); //do some weird stuff $word->Selection->TypeText("This is a test..."); $word->Documents[1]->SaveAs("Useless test.doc"); //closing word $word->Quit(); //free the object $word->Release(); $word = null; ?> but the follwing error is generated : Warning: Unable to obtain IDispatch interface for CLSID {000209FF-0000-0000-C000-000000000046}: Access is denied. in f:\test\magazin\exxx.php on line 41 Unable to instanciate Word please give me a quick answer ---- Manual Page -- http://www.php.net/manual/en/function.com-get.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40468 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40468&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40468&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66248) next »