All I want to do is save a word document in HTML format using PHP and COM. I have the following code
$word =new COM("word.application") or die("Unable to instantiate word");
$word->Documents->Open("F:/Useless test.doc");
$word->Documents[1]->SaveAs("f:/Useless test.htm",8);
$word->Quit();
To figure out that Word -> HTML converter is number '8' I made a Word macro which prints constant - wdFormatHTML. How can I use this constant in my PHP code because
$word->Documents[1]->SaveAs("f:/Useless test.htm",wdFormatHTML); did not worked - said something about type mismatch.
-Arnis