Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: How to populate dynamic RibbonControls at runtime?

$
0
0
hey thomas,

Its a NetOffice Tools Addin or just implement IExtensibility2 ?

I currently work for a visual ribbon designer (as similar as possible to VSTO)
At the moment, to create a ribbon dynamicly at runtime you have to override the GetCustomUI method.
    public override string GetCustomUI(string RibbonID)
    {
        return _myXml;
    }
For more runtime flexibility in dropdown elements you have to set the names of the callback methods("getContent") at hand in the ribbon.xml schema.
(VSTO gives you a nice option to generate an xml schema from the designer. its a good way to start from)

*Sebastian

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>