Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Templates
Message
De
12/01/2000 07:41:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/01/2000 18:12:03
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00316551
Message ID:
00316836
Vues:
13
>Is there a trick in creating a document based on a template that won't become visible by default.
>I am issuing
>oWord = create("Word.Application")
>odoc = oWord.Documents.Add("<>)
>
>The first thing it does is load a session of word visibly with the "Document 1" doc I just spawned. Is there anyway to disable this default behaviour?
>I could copy the file, then do all the OLE updating I want, without the user seeing anything, but I'd rather work off a template so that certain macros and tool bars are available without putting them in the normal.dot. Get all that... Probably more of a question for MS, but I doubt they know...
>It probably has something to do with the fact that the newly spawned, (don't know why I'm using that word, haven't been fishing lately),
>document isn't really a file yet, only in memory, therefore Word has to handle it visibly.
>
>Thanks in advance...
>
>Gary B.



Gary,
AFAIK word docs either existing or created new are not visible by default and need an explicit visible = .t.
I suspect there is some code somewhere setting it to .t. (Autorun macro ? A macro in template ?)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform