On Thu, Jul 30, 2009 at 1:53 AM, Mark Hammond<skippy.hamm...@gmail.com> wrote:
> On 29/07/2009 11:51 PM, Mike Graham wrote:
>
>> If I omit the parameters that don't mean anything to me on input, I
>> get com_error: (-2147352561, 'Parameter not optional.', None, None).
>
> I'm afraid about my last idea is to pass pythoncom.ArgNotFound (as mentioned
> at the top of the generated files) for those args...
>
> Cheers,
>
> Mark
>

Ah, I saw that note in the file and had tried that to no avail, I
should have noted.

model.PickObject(5, 0.5, 0, 0, pythoncom.ArgNotFound, pythoncom.ArgNotFound)

Traceback (most recent call last):
  File "<pyshell#12>", line 1, in <module>
    model.PickObject(5, 0.5, 0, 0, pythoncom.ArgNotFound, pythoncom.ArgNotFound)
  File 
"C:\Python26\lib\site-packages\win32com\gen_py\684A3F60-0408-11D4-A05F-0050DA1AC1A8x0x2x0.py",
line 6985, in PickObject
    , tolerance, PType)
  File "C:\Python26\lib\site-packages\win32com\client\__init__.py",
line 456, in _ApplyTypes_
    self._oleobj_.InvokeTypes(dispid, 0, wFlags, retType, argTypes, *args),
TypeError: int() argument must be a string or a number, not 'ArgNotFound'

and also

model.PickObject(5, 0.5, 0, 0, pythoncom.Missing, pythoncom.Missing)

Traceback (most recent call last):
  File "<pyshell#13>", line 1, in <module>
    model.PickObject(5, 0.5, 0, 0, pythoncom.Missing, pythoncom.Missing)
  File 
"C:\Python26\lib\site-packages\win32com\gen_py\684A3F60-0408-11D4-A05F-0050DA1AC1A8x0x2x0.py",
line 6985, in PickObject
    , tolerance, PType)
  File "C:\Python26\lib\site-packages\win32com\client\__init__.py",
line 456, in _ApplyTypes_
    self._oleobj_.InvokeTypes(dispid, 0, wFlags, retType, argTypes, *args),
com_error: (-2147352567, 'Exception occurred.', (0, None, None, None,
0, -2147467259), None)

Thanks for the help and all your work on these modules. I managed a
workaround, but I would still love to know how to get this going.

Mike
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to