我正在尝试为我们的客户关系管理应用程序创建一个VCF文件的导出方法。
我正在运行新的VS 2010,但目标项目是.NET 3.5
连接到这个上下文菜单的技术是什么?
1523.png
我对AddIns非常陌生,但逻辑上的思路是创建一个Outlook AddIn,但是在将菜单项添加到这个上下文菜单上时不幸地失败了:(
谢谢您在这方面的帮助。
发布于 2010-04-14 14:07:22
明白了
1604.png
this.Application.AttachmentContextMenuDisplay +=
new Outlook.ApplicationEvents_11_AttachmentContextMenuDisplayEventHandler(ThisAddIn_AttachmentContextMenuDisplay);然后在eventHandler
private void ThisAddIn_AttachmentContextMenuDisplay(Office.CommandBar commandBar, Outlook.AttachmentSelection attachments)
{
if (attachments.Count > 0)
{
Office.CommandBarControl cbc = commandBar.Controls.Add(
Office.MsoControlType.msoControlButton,
missing, missing, missing, true);
cbc.Caption = "Export into SuperOffice";
cbc.OnAction = "Action";
}
}https://stackoverflow.com/questions/2637693
复制相似问题