RhSolutions-AddIn/Functions.cs
Sergey Chebotar e7d3fe2bea Init commit
2021-11-11 16:33:40 +03:00

24 lines
666 B
C#

using ExcelDna.Integration;
namespace Rehau.Sku.Assist
{
public class Functions : IExcelAddIn
{
[ExcelFunction(description: "Получение наименования и артикула позиции")]
public static string RAUNAME(string request)
{
SkuAssist.EnsureHttpInitialized();
return SkuAssist.GetSku(request);
}
public void AutoClose()
{
ExcelIntegration.RegisterUnhandledExceptionHandler(
delegate (object ex) { return string.Format("!!!ERROR: {0}", ex.ToString()); });
}
public void AutoOpen()
{
}
}
}