I have just installed the python 1.4 installation and started to
follow the examples in the win32com documentation.
I can't get the Excel example to work. I get the following
output:
D:\PROGRAM\PYTHON\win32com\client>python
Python 1.4 (Feb 7 1997) [MSC 32 bit (Intel)]
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import ni, win32com.client.dynamic
>>> x1 = win32com.client.dynamic.Dispatch("Excel.Application")
>>> x1.Visible
0
>>> x1.Visible = 1
>>> x1.Workbooks().Add()
Traceback (innermost last):
File "<stdin>", line 1, in ?
File "dynamic.py", line 117, in __call__
raise TypeError, "This dispatch object does not define a default m
ethod"
TypeError: This dispatch object does not define a default method
>>>
If I try
>>> x1.Workbooks.Add()
Traceback (innermost last):
File "<stdin>", line 1, in ?
File "dynamic.py", line 117, in __call__
raise TypeError, "This dispatch object does not define a default m
ethod"
TypeError: This dispatch object does not define a default method
the workbook apears, but the same exception is raised.
I am using Windows NT 4.0 and MS-office 95.
Can anyone tell me what's wrong.
/Pawe
> I have just installed the python 1.4 installation and started to
> follow the examples in the win32com documentation.
> I can't get the Excel example to work. I get the following
> output:
Please try the binaries at www.python.org/windows - these should work
much better...
Mark.
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet