在msdn中查找到Q303018:
HOWTO: Use Automation to Create Office Command Bars and Controls with Visual C# .NET
其他的都是可以的,就是这句:
Office._CommandBarButtonEvents_ClickEventHandler oPopupButtonHandler = new Office._CommandBarButtonEvents_ClickEventHandler(oPopupButton_Click);
oPopupButton.Click += oPopupButtonHandler;
出错,提示:
类型或命名空间名称“_CommandBarButtonEvents_ClickEventHandler”在类或命名空间“Office”中不存在(是否缺少程序集引用?)请高人指点