none
How to load a image to ribbondropdown item in a word addin ? RRS feed

  • Question

  • Hello I need to know how to programatically load a png file to my word addin ribbondropdownItem from a dropdown list.

    Here is part of my code :

            dropDownlist.Items.Clear();

            Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItemImpl165 = this.Factory.CreateRibbonDropDownItem();

            ribbonDropDownItemImpl165.Image =   ???? ( how to load image from a *.png or jpg  file ? )

            ribbonDropDownItemImpl165.Label = "House";
            ribbonDropDownItemImpl165.ScreenTip = "House";
            ribbonDropDownItemImpl165.Tag = "HS";

            dropDownlist.Items.Add(ribbonDropDownItemImpl165);

    • Moved by CoolDadTx Monday, February 24, 2014 2:45 PM Office related
    Saturday, February 22, 2014 2:53 PM

Answers

All replies