Here I have basic code that should write some text in word document and save it. It does that ok but it doesn't launch word it starts it in proccesses viewed by task manager. I want it to launch word that I can see it. As I understand $word->Visible = 1; should do this but it doesn't, any help is aprechiated
<?php
$word = new COM("word.application") or die("Unable to instantiate Word");
echo "Loaded Word, version {$word->Version}\n";
$word->Visible = 1;
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("d:/cako/php.doc");
$word->Quit();
?>