COM help -- SaveAs
Posted: Sun Apr 03, 2005 5:00 pm
new to COM... getting this error
Unable to lookup Document: Unknown name. in C:\site\word_test.php...
it has something to do with the SaveAs method
Unable to lookup Document: Unknown name. in C:\site\word_test.php...
it has something to do with the SaveAs method
Code: Select all
$word = new COM("word.application");
$word->Visible = 1;
//Open a new document
$word->Documents->Open("C:\site\letterhead.doc");
//Write something
$word->Selection->Typetext("write something");
//Now save the document
$word->Document->SaveAs("C:\site\test.doc");