I have created a ribbon control using VSTO, and want to call function in xla on click of button, would like to know 1> how can I call xla function from ribbon开发者_JAVA百科 created in VSTO 2> How can I install xla plugin along with ribbon installation
here is how I did it
        var macroFilePath = Path.Combine(addinPath, addinName);
        var addins = Globals.ThisAddIn.Application.AddIns.Add(macroFilePath);
        if (!addins.Installed)
        {
            addins.Installed = true;                  
        }
        var app = Globals.ThisAddIn.Application;
        string macroToInvoke = string.Format("{0}!{1}", LibraryName, FunctionName);
        Globals.ThisAddIn.Application.Run(macroToInvoke);
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论