From:             [EMAIL PROTECTED]
Operating system: win2k server (chinese)
PHP version:      4.0.6
PHP Bug Type:     Unknown/Other Function
Bug description:  can't write word file


when the code excuted on line:

$word->Documents[1]->SaveAs("Useless test.doc");

It print out "Invoke() failed: ....".
Nobody knows why.

code is here:
<?
$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->Text="dfsdfs";

$word->Documents[1]->SaveAs("Useless test.doc");

//closing word
$word->Quit();

//free the object
$word->Release();
$word = null;
     ?>
-- 
Edit bug report at: http://bugs.php.net/?id=14516&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to