How can i write HTML to a doc file???
Posted on 2004-10-05
I have the next code for generating a doc file.
Dim msword As Word.Application
Dim msDoc As Word.Document
Dim a_text As String
a_text = "TEXT to be written!!! :)"
msword = New Word.Application
msDoc = msword.Documents.Add
msDoc.Content.Text = a_text 'write text to the doc file
msDoc.SaveAs("c:\01.doc") 'save the doc file
msDoc = Nothing
msword = Nothing
In stead of writing oly text i would like to write html code that will be interpreted by word and desplayed like in IE. Is this possible???
Or how can i make tables into this word document? Draw lines... and make table outline invisible???