Here is how you can save as an html file
oWord=CreateObject("word.Application")
oWord.documents.open('name')
oWord.Visible =.T.
oWord.activeDocument.SaveAs("name",10)
>I got the following error "Ole error code 0x80010105: The server threw an exception" during the save as html session.
>
>The main coding I'm using
>#define wdFileSaveAs 100
>
>oWord=CreateObject("word.Application")
>oWord.FileOpen(NAMES) &&open the file
>
>oWord.FileSaveAs(NAMES,wdFileSaveAs,.f.)
>
>Can anybody help me with the right coding to save as html file?