Subject: Re: Control MS Word? - DN [1]
"Bill Schongar" <bills@lcdmultimedia.com> - 17 Jun 1999 - comp.lang.tcl
Adrian Davis wrote:
>I've tried out a few simple things - Works OK...
>...Just a couple of questions however...
>
>(*) The document only seems to be updated if the Winword window is
minimised
>(Word97/NT4 SP3). Is this the correct behaviour -or- is there something I
>can do to update the document while the window is visible?
Yup, use the 'Insert' command, instead of passing just ASCII. Helps
if you add -async, too, just for speed..
dde execute -async Winword System {[Insert "Hello, World."]}
>(*) Is it possible to "FileExit" on an unsaved document and either
>supress -or- "answer" the "Do you want to save it" dialog?
Yup.
dde execute Winword System {[FileExit 2]}
I would recommend, though, that you close the file first, then exit:
dde execute Winword System {[FileClose 2]}
(2 = close without saving, 1 = save first, 0 = prompt)
>I'll get hold of some Word Macro Language
>documentation ASAP (Honest!!)
Heh.. that's what I said originally too.. but I had it on my system all
along..
"wrdbasic.hlp"... installs if you choose the "please flood my hard drive
with all the stuff I may never use" options.. : )
-Bill
Last modified
1999-09-27
1999-09-27
(195.108.246.50)
Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated
