将上下文菜单项添加到Outlook2013/2010阅读窗格 [英] Add context menu item to outlook2013/2010 reading pane

查看:81
本文介绍了将上下文菜单项添加到Outlook2013/2010阅读窗格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我正在使用功能区将上下文菜单项添加到Outlook阅读窗格. xml如下:

now I am using ribbon to add a context menu item to the outlook reading pane. The xml is below:

<contextMenu idMso="ContextMenuReadOnlyMailText">
    <menuSeparator id="separator"/>
    <button id="contextMenuItem" label="Timezone Convertor" onAction="DoAction"/>
</contextMenu>
<contextMenu idMso="ContextMenuReadOnlyMailHyperlink">
    <menuSeparator id="separator2"/>
    <button id="contextMenuItem2" label="Timezone Convertor2" onAction="DoAction"/>
</contextMenu>

idmso ContextMenuReadOnlyMailHyperlinkContextMenuReadOnlyMailText运作良好.但是我发现有时候如果您右键单击html表(可以在源代码视图中看到)内,则不会显示上下文菜单项. 我尝试使用ContextMenuReadOnlyMailTableContextMenuTable.但这不起作用. 有人可以帮我吗? 顺便说一句,现在,我在VS中创建了Outlook 2013外接程序项目.发布后,它可以用于Outlook 2010吗?还是我需要使用相同的代码创建Outlook 2010项目? 谢谢!

The idmso ContextMenuReadOnlyMailHyperlink and ContextMenuReadOnlyMailText works well. But I find sometimes if you right click inside a html table( which can be seen in the source view ), then the context menu item will not be shown. I tried to use ContextMenuReadOnlyMailTable or ContextMenuTable. But it's not working. Can someone help me on this? And BTW, now I created the outlook 2013 add-in project in VS. After I publish it, can it be used for outlook 2010? Or I need to create the outlook 2010 project with the same code? Thanks!

推荐答案

有人可以帮我吗?

Can someone help me on this?

并非所有的上下文菜单都可以使用功能区UI进行自定义(即Outlook扩展性模型不为此提供必需的ID).请参见在Outlook 2010中扩展用户界面进行可能的自定义.

Not all context menus can be customized by using the Ribbon UI (i.e. the Outlook extensibility model doesn't provide required IDs for that). See Extending the User Interface in Outlook 2010 for possible customizations.

发布后,它可以用于Outlook 2010吗?还是我需要使用相同的代码创建Outlook 2010项目?

After I publish it, can it be used for outlook 2010? Or I need to create the outlook 2010 project with the same code?

否,不需要创建新的外接程序项目.您可以在Outlook 2010中运行此加载项.使用Visual Studio 2013,Visual Studio 2012或Visual Studio 2010创建的解决方案可以在Office 2013,Office 2010或2007 Microsoft Office system中运行.但是,该解决方案只能使用Office的所有三个版本中可用的那些功能和API.您可以在在不同版本的Microsoft Office中运行解决方案 MSDN中的文章.

No, there is no need to create a new add-in project. You can run this add-in in Outlook 2010. Solutions that were created by using Visual Studio 2013, Visual Studio 2012 or Visual Studio 2010 can run in Office 2013, Office 2010, or the 2007 Microsoft Office system. However, the solution can use only those features and APIs that are available in all three versions of Office. You can read more about this in the Running Solutions in Different Versions of Microsoft Office article in MSDN.

这篇关于将上下文菜单项添加到Outlook2013/2010阅读窗格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆