word (office 2010) coming up minimised when called from another program on windows 7 but not on xp
Hi
I have a curious problem, Word 2010 when called from a vb6 program using create object is being displayed minimised, even though explicitly in the program it set to maximised.
When the Word 2003 is called from the VB6 program on Windows XP using create object Word correctly comes up maximised.
Whats the problem on Windows 7!
Microsoft DevelopmentMicrosoft ApplicationsMicrosoft Office
Last Comment
capitaldev
8/22/2022 - Mon
Pavel Celba
Word 2003 and 2010 are two rather different programs... with rather different behaviour.
How do you recognize the Word is minimized? Isn't it just placed behind other windows? What happens when you set WindowState = 2 and then WindowState = 1 ?
Could you post some piece of code?
capitaldev
ASKER
Its sits on the task bar flashing.
The code we use is
Set mvarApp = CreateObject("Word.Application")
mvarApp.WindowState = 2
Tried WindowState =2, AND windowState = 1 both seem to be minimised.
However a collegue of mind thinks that the word documents are behind the program running.
Is there a way to get word to always display on top of the program running.
How do you recognize the Word is minimized? Isn't it just placed behind other windows? What happens when you set WindowState = 2 and then WindowState = 1 ?
Could you post some piece of code?