Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing MSWord from VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00336743
Message ID:
00337684
Vues:
14
>Yessir, you hit the nail right on the head! Now, I only wish I knew how I could
>get Word to activate in the maximized state, to fill the whole screen..
>
>Rolf

That part is easy :)

*** wdWindowStateMaximize = 1

oWord.application.windowstate = wdWindowStateMaximize && For the Word window itself

oWord.application.activewindow.windowstate = wdWindowStateMaximize && For the active document window in Word

or

oWord.application.windows(1).windowstate = wdWindowStateMaximize
or by window name

oWord.application.windows("Document1").windowstate = wdWindowStateMaximize

You can directly assign 1 instead wdWindowStateMaximize (check VBA help for those constants) or include the header file for Word97 constants from Files section

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform