Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open/Show Word Document
Message
 
À
21/12/2003 16:11:45
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00861132
Message ID:
00861141
Vues:
37
>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..."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform