Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open/Show Word Document
Message
 
To
21/12/2003 16:11:45
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00861132
Message ID:
00861141
Views:
38
>Hi all...
>
>Having a bad Monday here... anyway, I have created a word object.... opened the correct file... have the object activtate, and have the correct windowstate... how do I get the object displayed over my vfp app without the user 'ALT-TAB' to get to it (the word application document')?
>
>TIA
>
>Ric

Hi Ric,

You can use the SetForegroundWindow API function for this. The tricky part, in the most general case, is to determine the HWND of the Word window, because Word doesn't expose this property. However, you can temporarily set the Word document's Caption property to an easily findable unique string to get the HWND, and then restore the original caption.

Mike
Montage

"Free at last..."
Previous
Reply
Map
View

Click here to load this message in the networking platform