Newbie COM query.
Nemir
nemir.BLOCK at hotmail.com
Sat Sep 9 08:01:59 EDT 2000
You guys are maybe getting used to me being a newbie.
:-)
I am trying to automate word as shown in p161 of Python Programming in Win32.
The range method on document objects doesn't seem to be behaving.
for example:
>>> from win32com.client import dispatch
>>> wordApp=Dispatch("Word.Application")
>>> wordDoc=wordApp.Documents.Add()
>>> wordDoc.Range(0,0).Select()
traces back with this exception
Attribute Error:;'tuple' object has no attributes 'InvokeTypes'
I think I am using word version 9, if it makes any difference. Any input would
be greatly appreciated.
Nemir
More information about the Python-list
mailing list