Outlook2007 - Ribbons check from xml file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

exists in Outlook 2007 any option, which shows the user if there is any
failure in the xml-file, which describes a ribbon?

Christian
 
You can set the Outlook setting to display all addin user interface errors,
that might help some. The setting is on the Advanced Options dialog
available from the Other tab of the Tools, Options dialog.
 
Hi Ken,

thanks for your response. I activated the described function and receive the
message (translated from german):

"Exception by calling the Callbackmethod: GetImage" "

Following the VB6 method:

Public Function GetImage(ByVal control As IRibbonControl) As IPictureDisp
Dim picture As IPictureDisp
Set picture = Nothing
Set picture = LoadPicture(App.Path & "\SharedAddin.ico")
' the picture object is not nothing
Set GetImage = picture
End Function

Do you have any idea?
Christian
 
I haven't used ICO files with ribbon controls, I usually try to use PNG
files so I can have transparency in the ribbon image. So I usually use a
LoadPicturePlus procedure that uses GDI+ to return an IPictureDisp object
(actually a StdPicture object) that I return in getImage.

LoadPicturePlus can be downloaded from
http://www.mvps.org/emorcillo/en/code/vb6/loadimagegdip.shtml.

I just call that on a file that's in the file system or that I have as a
Custom resource in my project (stored as a byte array) and then I save that
Custom resource out to the file system and point LoadPicturePlus at it.
 
Back
Top