>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