note 16923 rejected from class.com by zak
| From: | zak@php.net | Date: | Mon, 19 Nov 2001 12:46:31 +0000 |
| Subject: | note 16923 rejected from class.com by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21002@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