I have this code in ASP, which is supposed to open a word document and
save it as html document.
At times the code opens the word document and converts it to html but does not show the doc or html ever. Here is the code in
question. Could anyone help or
suggest please?.
<%
Const wdFormatHTML = 8
Dim objWord
Set objWord = CreateObject("Word.Application")
objWord.visible=true
objWord.Documents.Open "c:\temp\r.doc"
objWord.ActiveDocument.SaveAs "c:\temp\R.html", wdFormatHTML
objWord.ActiveDocument.Close
objWord.Quit '<============== Important!!!
Set objWord = Nothing
%>
Dr Prabhu