Avatar of capitaldev
capitaldev
Flag for Ireland asked on

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

Avatar of undefined
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.
ASKER CERTIFIED SOLUTION
Pavel Celba

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
capitaldev

ASKER
Thanks for the answer. Sorry it took so long to get back to you.  Also found a way of doing it without altering the code namely A registy hack i.e

In the HKEY_Current_User hive, then the Control Panel section followed by the Desktop sub section

Then edit the value of the key ForegroundLockTimeout from 30d40 to 0.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck