Word 2010 Images in Ribbon

Add-in Express™ Support Service
That's what is more important than anything else

Word 2010 Images in Ribbon
 
Christian Havel




Posts: 181
Joined: 2010-12-30
Hi,

I try to add some image to the AdxRibbonButtons in the adxWordEvents_Startup.
_myAdxButton.ImageList = _myimageList;
_myAdxButton.Image = 0;

In the AdxRibbonButton I see a placeholder for the image but the image is not shown.
In Outlook AddOns I do exactly the same and it works fine.
Any idea what I do wrong?

Thanks
Christian
Posted 15 Nov, 2011 07:56:56 Top
Eugene Astafiev


Guest


Hi Christian,

Could you please provide me with a sample add-in project (see readme.txt for the support e-mail address)? I will test it on my PC with Word 2010.
Posted 15 Nov, 2011 08:23:57 Top
Christian Havel




Posts: 181
Joined: 2010-12-30
Hi Eugene,

I send the you the sample with the topic in the email subject.

Thanks,
Christian.
Posted 16 Nov, 2011 03:14:54 Top
Eugene Astafiev


Guest


Hi Christian,

Thank you. I will test it on my PC and then let you know the results.
Posted 16 Nov, 2011 03:21:29 Top
Eugene Astafiev


Guest


Hi Christian,

Note, the Ribbon UI is a static thing. The AddinStartupComplete is not a suitable place for such things. Please use the OnRibbonBeforeCreate event handler instead. You can read more about this in the http://msdn.microsoft.com/en-us/library/aa338202%28v=office.12%29.aspx article. However, if you want to replace images at run-time you can use the PropertyChanging event of your ribbon controls.
Posted 16 Nov, 2011 04:18:23 Top
Christian Havel




Posts: 181
Joined: 2010-12-30
Hi Eugene,

thank your very much, the problem is solved.

Christian
Posted 16 Nov, 2011 05:50:20 Top
Eugene Astafiev


Guest


You are welcome, Christian!
Posted 16 Nov, 2011 06:03:13 Top