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); } } }
public override void RegisterFunctions(IEnumerable <ExcelFunctionRegistrationBase> registrationEntries) { // ReSharper disable InvokeAsExtensionMethod ExcelRegistration.RegisterFunctions(registrationEntries.Select(f => f.ExcelFunctionRegistrationInstance)); // ReSharper restore InvokeAsExtensionMethod }