B
bracoute
Hello ppl...
1)
i've finally got my automation launched correctly..
but this time i wanna know how to close my winword.exe
process which seems to remain in memory despite closing
the app... can you tell me how to 'kill' this app from
memory.
2)
can you ppl tell me how to saveas an html document
instead of just saving my word document as is... (I'm
especially looking for the code which will automate the
saving the doc to html)
Here is my code bellow.. how can i improve it?
From bracoute
Thanks in advance
Plz if you can, reply me via my email address:
(e-mail address removed)
1)
i've finally got my automation launched correctly..
but this time i wanna know how to close my winword.exe
process which seems to remain in memory despite closing
the app... can you tell me how to 'kill' this app from
memory.
2)
can you ppl tell me how to saveas an html document
instead of just saving my word document as is... (I'm
especially looking for the code which will automate the
saving the doc to html)
Here is my code bellow.. how can i improve it?
Code:
Dim oWordApp As
Microsoft.Office.Interop.Word.ApplicationClass
oWordApp = New
Microsoft.Office.Interop.Word.ApplicationClass()
Dim oWordDoc As
Microsoft.Office.Interop.Word.Document
Dim fileName, isVisible, missing As Object
fileName = "c:\bhav\TheDoc.doc"
oWordDoc = New
Microsoft.Office.Interop.Word.Document()
oWordDoc = oWordApp.Documents.Open(fileName)
oWordDoc.Activate()
oWordApp.Selection.TypeText("Another brick in the
wall")
oWordApp.Selection.TypeParagraph()
oWordDoc.Save()
oWordApp.Quit()
From bracoute
Thanks in advance
Plz if you can, reply me via my email address:
(e-mail address removed)