Python interfacing with COM

V

Viewer T.

I am quite a newbie and I am trying to interface with Microsoft Word
2003 COM with Python. Please what is the name of the COM server for
Microsoft Word 2003?
 
G

Gabriel Genellina

At said:
I am quite a newbie and I am trying to interface with Microsoft Word
2003 COM with Python. Please what is the name of the COM server for
Microsoft Word 2003?

Just use Word.Application, will launch the currently installed Word:

py> import win32com.client
py> word = win32com.client.Dispatch("Word.Application")
py> word.Visible = 1
py> word.Documents.Open(FileName=r"c:\any\filename.doc")
<win32com.gen_py.None.Document>
py> word.Quit()


--
Gabriel Genellina
Softlab SRL






__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top