Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling Word
Message
From
01/07/1998 17:57:14
 
 
To
01/07/1998 03:27:18
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00113034
Message ID:
00113588
Views:
23
This works fine.

oword.visible = .t.
oword.windowstate = 1

However, if I switch the order:

oword.windowstate = 1
oword.visible = t

it comes up full screen but the menus and toolbars are not visible!

>>I would like to maximize the Word application window when it is displayed. There is a property called WindowState that can be assigned a value to maximize, minimize, etc. The command line:
>> oWord.application.WindowState = 1
>
>>maximizes the window but hides all menus and toolbars. How do I maximize the window and keep the menus and toolbars.
>
>This is working for me:
>
>oword.visible = .t.
>oword.windowstate = 1 && without application cause oword is application
>
>if you use oword = createobject("word.document"), then you must use 'application' to refer word but not if you use oword = createobject("word.application")
>
>If you continue losing menus and toolbars, you must have something wrong configured in word.
>Hope this helps
Thanks,
Dan Jurden
djurden@outlook.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform