RhSolutions-AddIn/Source/DataExport/RibbonController.cs
2021-12-06 19:49:10 +03:00

27 lines
697 B
C#

using System.Runtime.InteropServices;
using System.Windows.Forms;
using ExcelDna.Integration.CustomUI;
namespace Ribbon
{
[ComVisible(true)]
public class RibbonController : ExcelRibbon
{
public override string GetCustomUI(string RibbonID)
{
return @"
<customUI xmlns='http://schemas.microsoft.com/office/2006/01/customui'>
<ribbon>
<tabs>
<tab id='tab1' label='REHAU'>
<group id='group1' label='Прайс-лист'>
<button id='button1' label='Экспорт' onAction='OnButtonPressed'/>
</group >
</tab>
</tabs>
</ribbon>
</customUI>";
}
}
}