T
Tom Winter
I cannot get Word 2007 Ribbon LoadImage/GetImage callbacks to work with my
VB6 COM Add-in.
Word calls my LoadImage function correctly for each image that needs loaded,
and I load by images with LoadPicture and return them, but they don't show
up. Any ideas?
Here's the code, basically. It's getting called and appears to work, but
nothing shows up. I've tried a GDI load picture variant (for use with PNGs)
(http://www.bmsltd.ie/Excel/SBXLPage.asp) and it did not help. Same result.
Changing the return type to stdole.IPictureDisp doesn't help. If I return
one of the builtin image ids (like "FileNew") those images show up OK.
Public Function GetRibbonImage(ByVal vImageID As Variant) As Variant
Set GetRibbonImage = LoadPicture(m_sMyFolder & vImageID &
".gif")
End Function
Trying this didn't help...
Public Sub GetRibbonImage(ByVal vImageID As Variant, ByRef vImageOut As
Variant)
Could there be something wrong with my image files? They worked fine when I
had them in a DOTM created with the Office Custom UI Editor Tool.
Thanks!
-Tom
(e-mail address removed)
VB6 COM Add-in.
Word calls my LoadImage function correctly for each image that needs loaded,
and I load by images with LoadPicture and return them, but they don't show
up. Any ideas?
Here's the code, basically. It's getting called and appears to work, but
nothing shows up. I've tried a GDI load picture variant (for use with PNGs)
(http://www.bmsltd.ie/Excel/SBXLPage.asp) and it did not help. Same result.
Changing the return type to stdole.IPictureDisp doesn't help. If I return
one of the builtin image ids (like "FileNew") those images show up OK.
Public Function GetRibbonImage(ByVal vImageID As Variant) As Variant
Set GetRibbonImage = LoadPicture(m_sMyFolder & vImageID &
".gif")
End Function
Trying this didn't help...
Public Sub GetRibbonImage(ByVal vImageID As Variant, ByRef vImageOut As
Variant)
Could there be something wrong with my image files? They worked fine when I
had them in a DOTM created with the Office Custom UI Editor Tool.
Thanks!
-Tom
(e-mail address removed)