When i try to run this script i get this error : invoke() failed : wrong variabletype
how can i fix this?
I am using Windows95 osr2 with office97 (both are portuguese versions)
$word=new COM("Word.Application");
$word->visible=0;
$word->Documents->Open($filename);
$word->ActiveDocument->SaveAs ($tmpimg,"8"); // save as HTML
$word->quit(0); // quit without save