[python-win32] howto get the typename of a comobject
Tim Roberts
timr at probo.com
Mon Mar 30 19:06:21 CEST 2015
闫飞 wrote:
>
> Hi,I have the same problem ,do u have a solution about it ? tks
>
Did you read any of the responses in that thread? There was a very good
explanation.
Another possibility is to get the IDispatch interface from the object,
call GetTypeInfo to fetch the ITypeInfo interface, then call
GetDocumentation to fetch the object name. That's what VBA is doing
behind the scenes.
By the way, I can't believe you quoted the original message by grabbing
a screen and posting it as an image. That's NOT how you quote a message
in a technical forum.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list