[pywin32-bugs] [ pywin32-Bugs-938098 ] InvokeTypes returns int instead of PYIDispatch object
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2004-04-29 00:42:06
|
Bugs item #938098, was opened at 2004-04-20 05:25 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=938098&group_id=78018 Category: com Group: None >Status: Pending >Resolution: Wont Fix Priority: 5 Submitted By: bob gailer (ramrom) Assigned to: Nobody/Anonymous (nobody) Summary: InvokeTypes returns int instead of PYIDispatch object Initial Comment: Python program fragment. Assumes excel dispatched as a COM object, with a worksheet with a chart: sc = chart.SeriesCollection() sc.Add(series_range, seriesAddDirection) The last line causes an error. Here's the method code generated for Add by the dispatch module: def Add(self, Source=pythoncom.Missing, Rowcol=2, SeriesLabels=pythoncom.Missing, CategoryLabels=pythoncom.Missing, Replace=pythoncom.Missing): ret = self._oleobj_.InvokeTypes(181, LCID, 1, (9, 0), ((12, 1), (3, 49), (12, 17), (12, 17), (12, 17)),Source, Rowcol, SeriesLabels, CategoryLabels, Replace) if ret is not None: ret = Dispatch(ret, 'Add', '{0002086B-0000-0000-C000-000000000046}', UnicodeToString=0) return ret The call to InvokeTypes returns integer 1 rather than a PyIDispatch object. Originally reported under Bug 841605. Creating new bug since I have researched this in much more detail than before. This is as far as I can go without help. I have clients waiting to use my program as soon as we can fix it. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2004-04-29 10:42 Message: Logged In: YES user_id=14198 Noting the dupe is [ 841605 ] com->Excel: 'int' object has no attribute 'GetTypeInfo'. I'm afraid this is going in the "excel bug" category, unless further information comes along. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=938098&group_id=78018 |