Thread: Ribbon Error
View Single Post
  #2  
Old January 14th 09, 03:32 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Ribbon Error

When a specific type of item is opened for the first time in an Outlook
session Outlook requests the ribbon XML in the GetCustomUI callback
(assuming you're using that callback).

So, if for example the item type passed into GetCustomUI as RibbonID is
"Microsoft.Outlook.Mail.Read", when the first mail item is opened in read
mode as opposed to "Compose" mode the ribbon XML will be requested for that
type of item.

Once that XML has been supplied it's cached for that session and the
callback is not called again for that type of item.

Normally if there's an error in the ribbon XML you see that error every time
an Inspector of that type of item is opened, since the XML has an error in
it. If it works one time it should work for all other instances of that type
of item.

If there's a question about your ribbon XML then post it here and we can
review it and see if any errors jump out at us.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Christian Havel" wrote in
message ...
Hi,

I have a AddIn (VB6) that extends the OL UI with my own ribbon. It works
pretty fine (the most time).

Sometimes I get a error message, that in the ribbon´s XML description is a
error.
Well, I receive the error message for inspectors that normally work with
the
ribbon without any problems.
Is it possible, that my XML-description is cached automatically by
Outlook?

Christian


Ads