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