如何将菜单项添加到 Outlook 中的文件类型中

发布于 2024-08-29 08:26:13 字数 413 浏览 1 评论 0原文

我正在尝试将 VCF 文件创建导出方法到我们的 CRM 应用程序。

我正在运行新的 VS 2010,但将项目定位为 .NET 3.5,

连接到此上下文菜单的技术是什么?

替代文本 http://www.balexandre.com/temp/2010-04- 14_1523.png

我对外接程序非常陌生,但逻辑思路是创建 Outlook 外接程序,但是我惨败向此上下文菜单添加菜单项:(

感谢您对此的任何帮助

I'm trying to create a Export method of a VCF file to our CRM application.

I'm running the new VS 2010 but target the project as .NET 3.5

what is the technique to hook up into this context menu?

alt text http://www.balexandre.com/temp/2010-04-14_1523.png

I'm very new to AddIns but as a logical line of thought is to create an Outlook AddIn, but I'm failing miserably to add a menu item to this context menu :(

Thank you for any help on this

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒与心事 2024-09-05 08:26:13

明白了

替代文本 http://www.balexandre.com/temp/2010- 04-14_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";
    }
}

Got it

alt text http://www.balexandre.com/temp/2010-04-14_1604.png

this.Application.AttachmentContextMenuDisplay += 
    new Outlook.ApplicationEvents_11_AttachmentContextMenuDisplayEventHandler(ThisAddIn_AttachmentContextMenuDisplay);

and then in the 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";
    }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文