Hello.
I have problems running a small php application that should instantiate a word-COM object.
I get the ERROR MESSAGE:
" Fatal error: NULL pointer exception in C:\Inetpub\wwwroot\test\word.php on line 2 "
The code I'me using is from the example in the article written by Alain M. Samoun on this link:
http://www.phpbuilder.com/columns/alain20001003.php3
Here's the code:
<?php
$word = new COM("word.application") or die("Unable to instantiate Word");
print "Loaded Word, version {$word->Version}<BR>";
$word->Visible = 1;
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");
$word->Quit();
?>
Could somebody help me on this :-)