note 16923 added to class.com

From: Date: Mon, 19 Nov 2001 12:45:22 +0000
Subject: note 16923 added to class.com
Groups: php.notes 
Request: Send a blank email to php-notes+get-21001@lists.php.net to get a copy of this message
Hello, i have some problem with the word sample code : // starting word $word = new COM("word.application") or die("Unable to instanciate Word"); print "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; It return : Loaded Word, version 8.0a Warning: Invoke() failed: No description available in E:\www\test.php on line 10 Warning: Invoke() failed: Exception occurred. in E:\www\test.php on line 16 Fatal error: NULL pointer exception in E:\www\test.php on line 16 Is anyone had some tricks for this ? Thank you, Regards Chatry Olivier -- http://www.php.net/manual/en/class.com.php http://master.php.net/manage/user-notes.php?action=edit+16923 http://master.php.net/manage/user-notes.php?action=delete+16923 http://master.php.net/manage/user-notes.php?action=reject+16923

« previous php.notes (#21001) next »