向 Outlook 2010 功能区添加选项卡?
我正在尝试创建一个 Outlook 2010 插件,将新选项卡添加到功能区。我发现如何通过将 OfficeId 设置为“TabMail”或内置内容来将我的组添加到现有选项卡,但我不想修改现有选项卡。
我现在已将 OfficeId 设置为我自己的内容(“TabMyAddin”),但它没有显示在 Outlook 中。我想知道是否需要以某种方式告诉 Outlook 添加并显示它,或者我将如何继续?
如果重要的话,RibbonType 已更改为 Microsoft.Outlook.Explorer。
I'm trying to create an Outlook 2010 addin that adds a new tab to the ribbon. I found out how I can add my groups to an existing tab by setting the OfficeId to "TabMail" or something built-in, but I don't want to modify existing tabs.
I've now set the OfficeId that something of my own ("TabMyAddin"), but it doesn't show up in Outlook. I wonder if I need to somehow tell Outlook to add it and show it, or how I would proceed?
The RibbonType was changed to Microsoft.Outlook.Explorer if that matters.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好的,明白了:
需要有一个 id 而不是 idMso。Okay, got it:
<tab>
needs to have an id instead of an idMso.我可以让它工作的唯一方法是将
ControlID
设置为自定义并将RibbonType
更改为Microsoft.Outlook.Explorer
。The only way that I can get it to work is by setting the
ControlID
to custom and changing theRibbonType
toMicrosoft.Outlook.Explorer
.您可以在 Outlook 中添加选项卡,只需使用以下步骤:
1) 转到项目并单击添加项目。
2) 您将看到以下屏幕
3) 将以下代码粘贴到 thisAddin.cs 文件中
4) 打开 Ribbon1.xml 文件。您将看到功能区选项卡控制代码。您可以在功能区节点下的 xml 中更改选项卡名称、组名称
you can add tab in outlook, just using following steps :
1) Go to project and click on add item.
2) you will see following screen
3) paste following code in thisAddin.cs file
4) Open the Ribbon1.xml file . You will see ribbon tab control code. you can change tab name , group name in xml under ribbon node