[python-win32] 2010 com addin and IRibbonExtensibilty
Christian K.
ckkart at hoc.net
Tue Dec 7 21:03:10 CET 2010
Am 06.12.10 05:42, schrieb robert2682:
> Christian K. wrote:
>> Hi,
>>
>> has anybody experiencs in writing Outlook com addins using the
>> IRibbonExtensibilty mechanism? I would like to make use of the ui
>> features provided by office 2010. Currently I am creating office
>> toolbars as demonstrated in the win32com.demos and all toolbars go to
>> the "Addins" tab.
>
> I tried to get it working using Excel 2007 (I have not tried 2010). I
> was able to get the extension to display on the Ribbon, and was able to
I even fail to get that far. What do I have to change here to be able
access the new style toolbars?
class Addin:
_com_interfaces_ = ['_IDTExtensibility2']
_public_methods_ = []
_reg_clsctx_ = pythoncom.CLSCTX_INPROC_SERVER
_reg_clsid_ = "{D371B22C-78B1-4271-8C10-60AE4719CEE5}"
_reg_progid_ = "my_addin"
_reg_policy_spec_ = "win32com.server.policy.EventHandlerPolicy"
I must admit that I have neither read M.Hammonds book nor am I a windows
programmer.
> call a function on a button click, but I ran into trouble reading the
> value of the IRibbonControl parameter to the callback. I just kept
> getting a com error (I don't recall the number, but it was the one that
> means generic error to Microsoft) trying to access the properties of the
> IRibbonControl. I spent a goodly amount of time on this, and eventually
> decided it was some kind of bug.
>
> I had meant to post a small program demonstrating the bug, but never got
> to it. If you make any progress, or want to discuss this further, please
> let me know, on or off list.
Let us continue the discussion here. I would have been glad if I had found
something about that topic while searching.
Regards, Christian
More information about the python-win32
mailing list