automating word 2000

dsavitsk dsavitsk at e-coli.net
Fri Aug 17 12:38:02 EDT 2001


i have an application that generates MS Word documents.  the generating part
works fine.  the trouble is that often while one document is being written a
second one will be started.  when this happens, the second document becomes
the default, both automating processes only write to the default one making
for a big mess (one document with stuff in it from two controlling
programs).

this happens when the clients are both from the same program, when one is
pythonwin and the other is python, and when the clients are on different
computers controlling a server with dcom.

one thought is to build a queuing system that will keep track of whether a
document is being generated (like a print spooler or something) and make the
other wait.  this seems like a clumsy solution. a way to launch Word as its
own thread threaded would be favorable, but i have no idea if this can be
done, or how to start.

does anyone have an idea either way?

thanks,

doug

dsavitsk at e-coli.net






More information about the Python-list mailing list