Outlook加载项功能区控件未出现在Outlook 2007的加载项中 [英] Outlook Add-In Ribbon Control does not appear in Add-Ins in Outlook 2007

查看:253
本文介绍了Outlook加载项功能区控件未出现在Outlook 2007的加载项中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用带有Target .NET的Visual Studio 2015(Outlook 2010 VSTO加载项目模板)构建的VSTO Outlook加载项版本4.0。然后,在项目中,我添加了
功能区(可视设计器)。然后,在功能区内,我添加了 Office功能区控件下的
按钮
控件。 

I'm working on a VSTO Outlook Add-In built using Visual Studio 2015 (Outlook 2010 VSTO Add-In Project Template) with Target .NET version 4.0. Then, in the project, I added Ribbon (Visual Designer). Then, inside the ribbon, I added a Button control found under Office Ribbon Controls

当我通过单击Visual Studio中的开始运行项目,打开Outlook 2007并加载VSTO加载项(根据加载项列表)。但是,我看不到我在设计器中添加的功能区或按钮控件。这是为什么?
以下是我添加的功能区的屏幕截图。请帮忙。下面是一些代码段:

When I run the project by clicking on Start in Visual Studio, Outlook 2007 opens and the VSTO Add-In is loaded (according to the Add-Ins list). However, I can't see the ribbon or the button control I added in designer. Why is that? Below is a screenshot of the ribbon I have added. Please help. Some code snippets are below:

在Ribbon1.Designer.cs中我设置了 this.RibbonType =" Microsoft.Outlook.Explorer";

In Ribbon1.Designer.cs I have set this.RibbonType = "Microsoft.Outlook.Explorer";

功能区的.xml如下:

The .xml of the ribbon is given below:

推荐答案

您好swdon,

Hi swdon,

您为什么要通过在资源管理器中自定义功能区来做?当您尝试手动设置RibbonType时,您会发现RibbonType不提供"Microsoft.Outlook.Explorer"。选项。

Why do you want to do via customizing the ribbon in Explorer? When you try to set the RibbonType manually, you will find the RibbonType does not provide "Microsoft.Outlook.Explorer" option.

与2007 Microsoft Office system中的其他应用程序不同,Microsoft Office Outlook 2007同时使用功能区和Microsoft Office Fluent UI的命令栏。对于Outlook 2007资源管理器,它仍然使用命令栏,因此您无法为Outlook
2007资源管理器自定义功能区。 

Unlike other applications in the 2007 Microsoft Office system,Microsoft Office Outlook 2007 uses both the Ribbon and command bars for Microsoft Office Fluent UI. For Outlook 2007 Explorer, it still used command bars so you could not custom ribbon for Outlook 2007 Explorer. 

有关详细信息,请参阅以下链接。

Please refer to below link for more information.

定制Outlook 2007中的功能区

最好的问候,

Terry


这篇关于Outlook加载项功能区控件未出现在Outlook 2007的加载项中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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