Exemplo n.º 1
0
 public static void RegisterDataFunctions()
 {
     ExcelRegistration.RegisterFunctions(
         Array.ConvertAll(
             DataFunctionsRegistration._type.GetMethods(BindingFlags.Public | BindingFlags.Static),
             method => new ExcelFunctionRegistration(method)
             )
         );
 }
        public void Register()
        {
            if (FunctionRegistration != null)
            {
                ExcelRegistration.RegisterFunctions(FunctionRegistration.GetFunctionRegistrations());
            }

            if (RibbonRegistration != null)
            {
                foreach (var addIn in RibbonRegistration.GetRibbonAddIns())
                {
                    ExcelComAddInHelper.LoadComAddIn(addIn);
                }
            }
        }
Exemplo n.º 3
0
 public override void RegisterFunctions(IEnumerable <ExcelFunctionRegistrationBase> registrationEntries)
 {
     // ReSharper disable InvokeAsExtensionMethod
     ExcelRegistration.RegisterFunctions(registrationEntries.Select(f => f.ExcelFunctionRegistrationInstance));
     // ReSharper restore InvokeAsExtensionMethod
 }