I am having trouble referencing a custom icon in a custom ribbon (instead of using a stock imageMso icon i want to use ones I've made.
Here's what I tried
Edited the rels file to include the relationships:
<Relationship Id="someID" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml"/>
<Relationship Id="myImage" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customImages/myImage.png"/>
And built the customUI.xml file to include the image in a button:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="false">
<tabs>
<tab id="CustomTab" label="ADV_Daily">
<group id="cg1" label="SQL">
<button id="Button1" label="Refresh Data Tables" image="myImage" size="large" onAction="Refresh_QueryTables" />
</group >
</tab>
</tabs>
</ribbon>
</customUI>
I've been able to make custom ribbons using the stock imageMSO options without any problem. But, when I try to include a custom image like this,I get the area in the ribbon, and the command works, but there is no image displayed.
Am I referencing the wrong schema, saving the images in the wrong format, not including some other parameter (like size="large")... or something else??
THank you for reading this!
(I'm trying to follow the example here http://msdn.microsoft.com/en-us/libr...ffice.12).aspx - they indicate the image must be included in the relationship file but don't mention how to include it)
Bookmarks