Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation: Opening doc conflict
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01309675
Message ID:
01309926
Vues:
13
Hi Yuri,

Good comments. I will do some more thinking before proceeding.

Albert

>>Hi again,
>>
>>Well, the visible flag is indeed the 12th parameter: I was counting down the list of descriptions (in Word 2007) and they have "format" listed twice (I don't know why) so that's why my count was off.
>>
>>So I was able to open a document in invisible mode - now I cannot figure out how to make it visible. This does not work:
>>
>>
>>
>>oWord.ioDocuments.Item[1].Visible = .T.
>>
>>
>>
>>Because documents themselves do not seem to have a .Visible property. And I could not find a method to fire this or anything.
>>
>>My intent is to use an existing Word instance (which itself will probably be visible) but to create a new doc in the background and then only present it to the user once it has been filled in.
>>
>>Albert
>
>It seems to me that you are trying to make it more complicated than needed.
>Why not just create the word object, keep it not visible, work with particular document (it will be not visible because MS WOrd itself is not visible) and then make MS Word visible (together with the document) if needed?
>
>oWord.visible=.t. /.f.
>
>Other than that, documents are open in windows and one document may have several windows. Windows can be set as minimized, visible, etc.
>So you may do something like:
>
>oWord.documents(1).Windows(1).Visible=.t.
>
>However, you cannot make the document window visible, but keep MS WORD window (with menu and toolbars) not visible. And if there are several documents, one of them is visible, but others - not visible, then user may go to MS WOrd Menu, choose Window TAb, and with click of the button make other windows/documents visible as well.
>So you may need to think about what to hide from user in the Word menu and toolbars as well.
>
>
>Good Luck
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform