I have a simple COM object made in VB doing following steps:
- Opening a word file.
- Save it as a HTML file.
* The trouble is: the saved file is not in HTML format, but still in Word
format.
Any clue from anybody? Any comment is very much appreciated.
Thank you.
Regards,
Vinh
The code is included under:
----------------------------------------------------------------------------
-------------------
Public Function saveashtml(sReadPath, sSavePath) As Boolean
Dim oWord As Object
Set oWord = CreateObject("word.application")
oWord.Visible = False
oWord.documents.Open FileName:=sReadPath
oWord.activedocument.saveas FileName:=sSavePath,
Fileformat:=wdFormatHTML
oWord.quit
End Function
Are you sure that it is not in HTML format. While the document is open in
Word, you may not notice much difference.
Please post any follow-up or new questions to the Newsgroups so that others
may benefit therefrom or contribute thereto.
Hope this helps,
Doug Robbins - Word MVP
"vhn" <vin...@frisurf.no> wrote in message
news:6z2n6.16447$Xp4.8...@juliett.dax.net...
Vinh
"vhn" <vin...@frisurf.no> wrote in message
news:6z2n6.16447$Xp4.8...@juliett.dax.net...