PHP and Microsoft Word
Posted: Wed Oct 22, 2003 3:39 am
I am using the COM functions to manipulate MS Word files bu i can't seem to find a list of functions that you can use. The only ones i know are:
Where, or how can i find out how to do other stuff? The PHP manual doesn't really help.
Thanks
Mark
Code: Select all
$word->Documents->Open("E:\\first.doc"); //Open doc
$word->Documents[1]->SaveAs("E:\\test_doc.html",8); //Save as HTML
$word->Quit(); //closing word
$word->Release(); //free the object from the memory
$word->Documents->Add(); //Create new document
$word->Selection->Typetext("This is a test"); //Type text in the documentThanks
Mark