none
XML custom ribbon : Link between ribbon class and thisaddin class RRS feed

  • Question

  • Hello,

    I'm working on an outlook 2010 addin, using custom XML ribbon.

    All callbacks linked to the custom XML ribbon are defined in the associated class (and it works fine)

    This class looks isolated, and I can't find how to use in this class variables/function from the rest of the application (thisaddin class / other modules)

    A declaration or something must be missing.....

    Thank you for your help


    Thursday, September 1, 2011 2:39 PM

Answers

  • your proposal should work to call ribbon variables from main application, but in the other direction thisaddin.myvariable (myvariable declared as public) does not work when called from the ribbon class (hope this is clear....)

    Have you tried Gloabls.ThisAddin.PublicVariableName


    Cindy Meister, VSTO/Word MVP
    Thursday, September 1, 2011 4:34 PM
    Moderator

All replies

  • Assuming the classname is Ribbon1, you should be able public variables by Ribbon1.MyVarName
    Kind Regards, Rich ... http://greatcirclelearning.com
    Thursday, September 1, 2011 3:23 PM
  • Thank you for your answer,

    your proposal should work to call ribbon variables from main application, but in the other direction thisaddin.myvariable (myvariable declared as public) does not work when called from the ribbon class (hope this is clear....)

    Thanks

    Thursday, September 1, 2011 3:38 PM
  • your proposal should work to call ribbon variables from main application, but in the other direction thisaddin.myvariable (myvariable declared as public) does not work when called from the ribbon class (hope this is clear....)

    Have you tried Gloabls.ThisAddin.PublicVariableName


    Cindy Meister, VSTO/Word MVP
    Thursday, September 1, 2011 4:34 PM
    Moderator
  • That's it - it's now OK

    Thank you very much

    Friday, September 2, 2011 8:04 AM