I've got the following piece of code in VFP 7.0 sp1:
Release All Like oW*
oWord = Createobject('Word.Application')
If Type('oWord.name') = "C"
_Screen.AlwaysOnTop = .T.
_Screen.AlwaysOnTop = .F.
Endif
If Type('oWord.name') = "C"
oWord.Visible = .T.
Endif
This seems to work most of the times. But sometimes Word starts in the background instead of on top.
I'm using Word 2002 sp2.
Can anyone tell me how I get Word to ALWAYS start on top?
Release All Like oW*
oWord = Createobject('Word.Application')
If Type('oWord.name') = "C"
_Screen.AlwaysOnTop = .T.
_Screen.AlwaysOnTop = .F.
Endif
If Type('oWord.name') = "C"
oWord.Visible = .T.
Endif
This seems to work most of the times. But sometimes Word starts in the background instead of on top.
I'm using Word 2002 sp2.
Can anyone tell me how I get Word to ALWAYS start on top?