Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open word window in front of vfp window
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01537464
Message ID:
01537487
Vues:
32
>>how would i get this to open in front of the vfp window?
>>right now it opens in back.
>>thanks
>>k
>>
>>objWord = CreateObject("Word.Application")
>>objWord.Documents.Open ("C:/mydocument.doc")
>>objWord.visible = .T.
>>objWord.DisplayAlerts = .f.
>>
>
>Try
>
>#DEFINE wdWindowStateMinimize 2 
>#DEFINE wdWindowStateMaximize 1 
>
>loWord.WindowState = wdWindowStateMinimize	&& Сворачиваем окно  //Minimize 
>loWord.WindowState = wdWindowStateMaximize	&& Разворачиваем окно, что приводит к его активизации //Maximize makes it active 
>
>based on this FAQ
>http://forum.foxclub.ru/read.php?32,177182,258927#msg-258927 (in Russian)

I can't quite follow those comments, Naomi ;-)

Just kidding. Of course I can, with the English translations on the right. Actually I think those two lines are a good example of when no comments are needed at all.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform