Information générale
Catégorie:
COM/DCOM et OLE Automation
Try using oWord.AppMaximize instead of oWord.AppShow
Here are a few others I can remember:
.AppMaximize
.AppMinimize
.AppShow
.AppHide
>I am using the following.
>oWord=creaTEOBJECT("word.basic") &&&open up word
>oWord.FileOpen('C:\temp\myfile.doc') &&&&open saved document
>
>oWord.AppShow &&&show the document
>
>
>When I do this I would like word to open maximized at all times.
>
>I've tried this (oWord.windowstate=1)
>but it doesn't work. Unless I use oWord=creaTEOBJECT("word.application"). I don't use the application because when I maximze it and make it visible to the user the toolbars including file, edit etc. are missing.
>
>Is there a way to maximize using word.basic? Or is there a way to get the toolbars to turn on using the word.application?
>
>
>Thanks in advance,
>Todd
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement