【问题标题】:VSTO Outlook Add-In Ribbon not showing in Outlook 2007VSTO Outlook 加载项功能区未在 Outlook 2007 中显示
【发布时间】:2018-05-07 00:07:21
【问题描述】:

我有一个使用带有功能区的 VSTO Outlook 2010 模板开发的 Outlook 加载项。功能区 xml 是

<?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?

除了 UI,外接程序的功能在 Outlook 2016 和 Outlook 2007 中都可以使用。我正在使用 Visual Studio 2015 进行开发。

【问题讨论】:

  • 如果您在选项 | 中启用“显示插件用户界面错误”,您会看到任何错误吗?高级 |开发者?
  • 你能做到吗?
  • @TonyD 不,这个项目有点暂停,因为我们已经有了 2007 年的旧版本产品。我认为我们不会再更新 2007 版本了。

标签: c# visual-studio-2015 outlook vsto


【解决方案1】:

您必须先在全局程序集缓存 (GAC) 中安装 Outlook 2007 Primary Interop Assembly (PIA),然后才能将 PIA 中的信息合并到 Outlook 托管加载项中。为此,您可以选择 Office 的典型安装,然后为 Outlook 添加 .NET 可编程性支持。

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

选择您的 Office 安装并单击更改。

选择添加或删除功能。

点击继续。

在“安装选项”选项卡中,单击“+”以展开您要为其安装 PIA 的应用程序。

单击 .NET 可编程性支持旁边的下拉箭头,然后选择从我的电脑运行。

【讨论】:

    猜你喜欢
    • 2013-03-08
    • 2021-03-01
    • 2015-12-17
    • 2022-05-17
    • 1970-01-01
    • 2015-07-28
    • 2011-07-25
    • 2021-06-03
    • 1970-01-01
    相关资源
    最近更新 更多