blog community

Welcome to blog community Sign in | Join | Help
in Search

Wouter van Vugt

This blog is no longer maintained and has moved

Working with the stdole IPictureDisp interface in VSTO and RibbonX

I'd like to share with you a class for returning images in VSTO customizations of the Ribbon. When you check the callback signatures you'll realize that IPictureDisp is not a .NET thing. Yes... this is COM (something which will likely continue to surface when working with VSTO). I am aware of two ways to create an instance of IPictureDisp; use the AxHost class, or implement the interace yourself.

Using AxHost is easy, just subclass it to get to the protected GetIPictureDispFromPicture method.

Implementing the interface isn't that hard either, here's the code.

Published Wednesday, June 07, 2006 2:13 PM by wouterv
Filed under: , ,

Comments

No Comments
Anonymous comments are disabled

This Blog

Syndication

News


Add to Technorati Favorites
Powered by Community Server, by Telligent Systems