K
kauf
Hi,
One problem with MSWord 2003 automation.
Instance of word application stay alive after program termination.
I wrote simple test application (VB6):
---------------------------------------
Dim oWordApp As Word.Application
With oWordApp
Dim oWordDoc As Word.Document
Set oWordDoc = .Documents.Add
End With
With oWordDoc
.Content.Text = "Hello, World!"
.SaveAs "Hello"
.Close
End With
Set oWordDoc = Nothing
oWordApp.Quit
Set oWordApp = Nothing
---------------------------------------
Step to reproduce:
Open new word application manualy.
Execute code above.
Open task manager --> two instances of WINWORD are there.
I try to reproduce with behaviour on diferent PC with same OS an
MSWord version
It reproduced on 50% of PC
I just can't explain this..
One problem with MSWord 2003 automation.
Instance of word application stay alive after program termination.
I wrote simple test application (VB6):
---------------------------------------
Dim oWordApp As Word.Application
With oWordApp
Dim oWordDoc As Word.Document
Set oWordDoc = .Documents.Add
End With
With oWordDoc
.Content.Text = "Hello, World!"
.SaveAs "Hello"
.Close
End With
Set oWordDoc = Nothing
oWordApp.Quit
Set oWordApp = Nothing
---------------------------------------
Step to reproduce:
Open new word application manualy.
Execute code above.
Open task manager --> two instances of WINWORD are there.
I try to reproduce with behaviour on diferent PC with same OS an
MSWord version
It reproduced on 50% of PC
I just can't explain this..