VSTO Outlook 加载项功能区未在 Outlook 2007 中显示 [英] VSTO Outlook Add-In Ribbon not showing in Outlook 2007

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

问题描述

我有一个使用 VSTO Outlook 2010 模板开发的 Outlook 插件,该模板带有功能区.功能区 xml 是

I have an Outlook add-in developed using VSTO Outlook 2010 template which has a ribbon. The ribbon xml is

<?xml version="1.0" encoding="UTF-8"?>
<customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2006/01/customui">
    <ribbon>
        <tabs>
            <tab idMso="TabAddIns">
                <group id="PluginGroup" label="the Collective">
                    <button id="FolderSelector" onAction="FolderSelector_Click" screentip="Click to select forwarding folder" label="Folder Selector" showImage="false" />
                    <labelControl id="label1" label="Current Folder :" screentip="Folder which all email will be forwarded" />
                    <labelControl id="guiCurrrentChooserFolder" label="Please Select a folder" />
                </group>
            </tab>
        </tabs>
    </ribbon>
</customUI>

此功能区在 Outlook 2016 中显示并正常运行.但是,功能区在 Outlook 2007 中不显示.这是兼容性问题吗?如何修改此 xml 以支持 Outlook 2007?

This ribbon shows and functions properly in Outlook 2016. However, the ribbon does not show in Outlook 2007. Is this a compatibility issue? How can I modify this xml to support Outlook 2007 as well?

除了 UI 之外,插件的功能在 Outlook 2016 和 Outlook 2007 中都可以使用.我正在使用 Visual Studio 2015 来开发它.

Other than the UI, the functionality of the Add-In is working in both Outlook 2016 and Outlook 2007. I'm using Visual Studio 2015 to develop this.

推荐答案

您必须首先安装 Outlook 2007 主互操作程序集 (PIA) 位于全局程序集缓存 (GAC) 中,然后才能将来自 PIA 的信息合并到 Outlook 托管加载项中.为此,您可以选择 Office 的典型安装,然后添加 Outlook 的 .NET 可编程性支持.

You must first install the Outlook 2007 Primary Interop Assembly (PIA) in the Global Assembly Cache (GAC) before you can incorporate information from the PIA in an Outlook managed add-in. You can do so by choosing the Typical installation of Office and then adding .NET Programmability Support for Outlook.

在安装 Outlook 后为 Outlook 添加 .NET 可编程性支持在控制面板中,单击添加或删除程序.

To add .NET Programmability Support for Outlook after Outlook is installed In Control Panel, click Add or Remove Programs.

选择您安装的 Office,然后单击更改".

Select your installation of Office and click Change.

选择添加或删除功能.

点击继续.

在安装选项"选项卡中,单击+"以展开要为其安装 PIA 的应用程序.

In the Installation Options tab, click the '+' to expand the application for which you want to install the PIA.

单击 .NET Programmability Support 旁边的下拉箭头,然后选择从我的电脑运行.

Click the drop-down arrow adjacent to .NET Programmability Support and select Run from My Computer.

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

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