[python-win32] testMSOffice.py and Excel 2003
Cavanagh, Mike
mike.cavanagh at siemens.com
Thu Sep 15 21:24:52 CEST 2005
Hi!
We have a couple of internal applications that are written in Python and
have always worked with Excel 2000.
We are 'upgrading' to Excel 2003 and in my pre-rollout testing, our
applications are failing.
Using the testMSOffice.py test case, I receive the following:
>>> from win32com.test import testMSOffice
>>> testMSOffice.TestAll()
Starting Word 8 for dynamic test
Starting Word 8 for non-lazy dynamic test
Starting MSWord for generated test
Starting Excel for Dynamic test...
Traceback (most recent call last):
File "C:\Python24\Lib\site-packages\win32com\test\testMSOffice.py", line
142,
in TestAll
TextExcel(xl)
File "C:\Python24\Lib\site-packages\win32com\test\testMSOffice.py", line
96, i
n TextExcel
xl.Workbooks().Add()
File "C:\Python24\Lib\site-packages\win32com\client\dynamic.py", line 165,
in
__call__
return
self._get_good_object_(self._oleobj_.Invoke(*allArgs),self._olerepr_.
defaultDispatchName,None)
com_error: (-2147352562, 'Invalid number of parameters.', None, None)
I'm beginning to pull my hair out here, any help would be appreciated.
Thanks,
Mike
More information about the Python-win32
mailing list