469,287 Members | 2,664 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,287 developers. It's quick & easy.

Python / COM / Word

I'm having a little trouble trying to automate Word (2002). I'm
hoping to be able to create and process documents relatively independently
of any existing open word documents. e.g. When I have an existing document
open and I enter the following at the command line any documents I create
are visible, until setting wordApp.Visible to False, when all the documents
are hidden.
import win32com.client
wordApp = win32com.client.Dispatch('Word.Application')
wordApp.Visible True wordApp.Visible = False

Ideally I'd like to have independent 'Word instances', so I can hack around
to my heart's content without jeopardising documents opened and created by
some hapless user (which would also be me). At the very least I need to
keep the documents I'm creating hidden, whilst leaving existing documents
visible. Any ideas? Cheers.

Jul 18 '05 #1
0 1037

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

220 posts views Thread by Brandon J. Van Every | last post: by
4 posts views Thread by Mickel Grönroos | last post: by
23 posts views Thread by Yannick Patois | last post: by
5 posts views Thread by Fazer | last post: by
68 posts views Thread by Lad | last post: by
137 posts views Thread by Philippe C. Martin | last post: by
34 posts views Thread by Ville Voipio | last post: by
8 posts views Thread by John Salerno | last post: by
13 posts views Thread by =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.