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