Wrox Home  
 
Search P2P Archive for  go

More Wrox Resources

  Return to Index  

asp_web_howto thread: Re: Why document(s) does not show


Message #1 by psinghp@e... on Tue, 29 Jan 2002 10:20:34 +0400
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






  Return to Index