none
Ribbon XML dropDown getItemLabel not firing RRS feed

  • Question

  • Hello,

      getItemCount fires but not getItemLabel.  I am using VS 2005 SE VSTO.  As I understand it, it is supposed to fire once for each item in the dropdownlist.  I am using this example

     

    Thanks


    Monday, August 22, 2011 11:32 AM

Answers

  • Carefully check the spelling, including capitalization, of the attribute and the procedure to which it refers. They must match exactly.

    Also check the method signature of the callback procedure. The sample code you link to is for VBA, but I'm fairly certain you're using VB.NET or C#. You'll need a function, rather than a sub (or void) with one parameter less, that returns a String. You'll find a complete listing of the method signatures for the various callbacks in this article:

    http://msdn.microsoft.com/en-us/library/aa722523(office.12).aspx


    Cindy Meister, VSTO/Word MVP
    • Marked as answer by Lugalzagesi Tuesday, August 23, 2011 9:00 AM
    Monday, August 22, 2011 1:34 PM
    Moderator