[IronPython] Word and MissingMemberException, 'tuple' object has no attribute 'SaveAs
Peter Frey
freyp576 at yahoo.de
Mon Oct 9 22:09:18 CEST 2006
Problem is solved now. The Tuple I get behaves indeed like a Python tuple, so I can use myDoc[0] and invoke the SaveAs operation on that.
Irritation was that the CLR debugger does not allow to evaluate python expressions like myDoc[0],
what is rather unexpected when used to a Python editor like WingIDE, my favorite one.
Peter
----- Ursprüngliche Mail ----
Von: Frey576 <freyp576 at yahoo.de>
An: users at lists.ironpython.com
Gesendet: Samstag, den 7. Oktober 2006, 23:48:03 Uhr
Betreff: [IronPython] Word and MissingMemberException, 'tuple' object has no attribute 'SaveAs
The exception I get upon call of myDoc.SaveAs is:
MissingMemberException, 'tuple' object has no attribute 'SaveAs'
when I check myDoc (obtained from Word.Documents.Open) in the CLR debugger I
see indeed that I got a tuple
but it does not look like a Python tuple and I dont know how to handle that:
- myDoc {(<DocumentClass object at 0x000000000000002B>,
'D:\\Projekte\\SGMLtoRtf\\dirWatch_SGMLtoRtf\\test\\HelloWorld.xml',
<Missing object at 0x000000000000002C>, True, <Missing object at
0x000000000000002C>, <Missing object at 0x000000000000002C>, <Missing object
at 0x000000000000002C>, <Missing object at 0x000000000000002C>, <Missing
object at 0x000000000000002C>, <Missing object at 0x000000000000002C>,
<Missing object at 0x000000000000002C>, <Missing object at
0x000000000000002C>, <Missing object at 0x000000000000002C>, <Missing object
at 0x000000000000002C>, <Missing object at 0x000000000000002C>, <Missing
object at 0x000000000000002C>, <Missing object at 0x000000000000002C>)}
object {IronPython.Runtime.Tuple}
...
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20061009/1bf28a88/attachment.html>
More information about the Ironpython-users
mailing list