com/word

From: Date: Tue, 14 Nov 2000 16:03:34 +0000
Subject: com/word
Groups: php.general 
Request: Send a blank email to php-general+get-25195@lists.php.net to get a copy of this message
Hello, I have some problems with COM, the basic script taken from phpbuilder.com gives an error: This is the script: <?php $word = new COM("word.application") or die("Unable to instantiate Word"); print "Loaded Word, version {$word->Version}<BR>"; $testversion = com_get($word->application,version); print "Version using Com_get(): $testversion <BR>"; $word->Visible = 1; $word->Documents->Add(); $word->Selection->TypeText("This is a test..."); $word->Documents[1]->SaveAs("Useless test.doc"); $word->Quit(); ?> This is the error: Warning: Unable to obtain IDispatch interface for CLSID {000209FF-0000-0000-C000-000000000046}: Server execution failed in c:\apache\htdocs\docxchange\com.html on line 2 Do I have to set something up in windows or anything? Thanks, Domme

« previous php.general (#25195) next »