I am sending a report to a Word doc, then opening Word and loading the doc - I want to bring the Word Window to the front from within the VFP program but dont know how - tips appreciated...
In some OSs the .Activiate() method is enough to bring Word to the front, but with XP (and maybe Win2K), it only causes the button on the TaskBar to flash, indicating the app is asking for your attention.
To add to what BPeisch has already said, I've written a FAQ to get around the problem of the taskbar button blinking in Win2k+ Windows OS. This FAQ will show you how to reliably bring the window to the front no matter what.
Force Window to Front (not blink in taskbar)
faq184-4262
Slighthaze = NULL craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon
- I am using OLE Automation at the moment but I will try
SHELLEXECUTE tomorrow. Will also try oWord.Activate.
- I did find your FAQ earlier and tried using it but using oWord.Caption in the function did not seem to work - any trick to referencing a program not VFP from VFP?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.