eshurak
asked on
Office 2010 custom image not appearing in custom Ribbon
Hello,
My custom image does not appear in my Ribbon. The button appears but without the image. I've attached a screen shot of the "Custom UI Editor" with my xlam file open. The image is called BlackFolder. I tried other images but they did not work either.
My custom image does not appear in my Ribbon. The button appears but without the image. I've attached a screen shot of the "Custom UI Editor" with my xlam file open. The image is called BlackFolder. I tried other images but they did not work either.
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="false">
<tabs>
<tab id="CustomTab" insertAfterMso="View" label="VR">
<group id="SIMON" label="SIMON">
<button id="Button" label="Consolidate" image="BlackFolder" size="large" onAction="ThisWorkbook.DataFix" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
ribbon-image-problem.bmp
ASKER
Hi Sid,
I'm using image not imageMso so it's for a custom image not a MS build-in one. See here they use a custom image in their ribbon.: http://msdn.microsoft.com/en-us/library/cc508991%28v=office.11%29.aspx
Thanks
I'm using image not imageMso so it's for a custom image not a MS build-in one. See here they use a custom image in their ribbon.: http://msdn.microsoft.com/en-us/library/cc508991%28v=office.11%29.aspx
Thanks
Ok. Can you upload that image here. Let me create the XML code for you.
Sid
Sid
Also I hope you have read this on that link
Note:
In the following procedures, you import an image of your choice into the Custom UI Editor. As a rule of thumb, images should be either 16 X 16 for small controls, or 32 X 32 for large controls, both with 96dpi. These images can be one of the following formats: PNG, BMP, ICO, WMF, JPG, and GIF.
Sid
Note:
In the following procedures, you import an image of your choice into the Custom UI Editor. As a rule of thumb, images should be either 16 X 16 for small controls, or 32 X 32 for large controls, both with 96dpi. These images can be one of the following formats: PNG, BMP, ICO, WMF, JPG, and GIF.
Sid
ASKER
Yes, I'm png file is 32X32 and 96 dpi.
blankFolder.png
blankFolder.png
Ok Test this for me. Some files are getting uploaded onto my FTP server so I cannot restart my laptop in win 7 to check this in Office 2010. Also Use the image that I am uploading. Insert that image using Custom UI.
Sid
BlankFolder.jpg
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon>
<tabs>
<tab id="MyCustomTab" label="VR" insertAfterMso="TabView">
<group idMso="GroupClipboard" />
<group idMso="GroupFont" />
<group id="customGroup1" label="SIMON">
<button id="customButton1" label="Consolidate" size="large" onAction="DataFix" image="BlankFolder" />
</group>
<group idMso="GroupEnterDataAlignment" />
<group idMso="GroupEnterDataNumber" />
<group idMso="GroupQuickFormatting" />
</tab>
</tabs>
</ribbon>
</customUI>
Sid
BlankFolder.jpg
BTW, I have tested it in 2007 and it works. :) See snapshot. I will be able to test the above code after an hour once the uploading of files is complete.
UI For 2007
Sid
Untitled.jpg
UI For 2007
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="MyCustomTab" label="VR" insertAfterMso="TabView">
<group id="customGroup1" label="SIMON">
<button id="B1A" label="Consolidate" size="large" onAction="DataFix" image="BlankFolder" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Sid
Untitled.jpg
ASKER
I used your code and jpg file but still the image does not show up.
ASKER
Just saw your second message. I guess it's an 2010 issue.
Ok. Can you test this file for me? If it is not working, then I will only be able to test it after as hour like I mentioned above..
Sid
Sample.xlsx
Sid
Sample.xlsx
ASKER
Yes, that works. So it's not in my xml. I'm attaching my xlam file.
Williams-Consolidation.xlam
Williams-Consolidation.xlam
Don't give me this. Give me the original xlsm file so that I can amend it.
Sid
Sid
ASKER
That's all I've got at this point. I'm hoping to see where I went wrong so I don't repeat my mistake.
ASKER
That does not work either. Maybe it's something in the .rels file or customUI.xml.
Is it not your original File? If I can get the source (xlsm) then I can get it working for you.
Sid
Sid
Wait.
I have an alternative :)
Sid
I have an alternative :)
Sid
ASKER
Okay, I was able to move my code to your sample and rename it. I also made my xlam work by copying the customu14.rels file from your to mine.
ASKER
I'm going to close this one down unless you want to keep working on it. ;)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Sid!!!
Glad to be of help :)
Sid
Sid
ASKER
We still don't know what caused the problem but I least we got it working.
Alternatively, you can download the same file from here
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2d3a18a2-2e75-4e43-8579-d543c19d0eed
Sid
Office2010IconsGallery.docx