using ExcelDna.Integration.CustomUI; using System.IO; using System.Reflection; using System.Runtime.InteropServices; namespace RhSolutions.Controllers; [ComVisible(true)] public class RibbonController : ExcelRibbon { private static IRibbonUI ribbonUi; private static bool _workbookIsValid; public override string GetCustomUI(string RibbonID) { return @"