Here's some code that allows you to open a Word file and then save it as an html file, you can then work with it a little easier. On my server I got a Server.CreateObject failed, but that's just because Word isn't installed on the server. I tried it on one of my own servers and it worked fine.
DIM objWord, objDoc, dlg
Set objWord = Server.CreateObject("Word.Application")
objWord.documents.open Server.MapPath("test.doc")
Set objDoc = objWord.documents(1).Content
Set dlg = objWord.dialogs(84)
dlg.Name = Server.MapPath("test.html")
dlg.Format = 8
dlg.execute
objWord.Quit
SET objWord = Nothing
SET objDoc = Nothing
SET dlg = Nothing
Response.Redirect "test.html"
|