功能区选项卡即使在卸载后存在的PowerPoint外接 [英] Ribbon tab exists even after uninstalling PowerPoint Add-in

查看:444
本文介绍了功能区选项卡即使在卸载后存在的PowerPoint外接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个应用程序级别添加用于PowerPoint二千零十三分之二千零一十使用C#VSTO。该加载项是由MSI安装文件进行安装。

I have created an application level Add-in for PowerPoint 2010/2013 using C# VSTO. The add-in is installed from msi installer file.

现在的问题是,经过我从控制面板卸载加载项,打开一个新的PowerPoint演示文稿,色带。标签仍然是所有功能正常工作,可见

The problem is that after I uninstall the add-in from the control panel and open a new PowerPoint presentation, the ribbon tab is still visible with all the functionalities correctly working.

要删除我所要做的以下任一两件事情标签:

To remove the tab I have to do either of the following two things:


  1. 从PowerPoint演示开发工具选项卡的COM加载项列表中删除加载项。

  2. 结束的PowerPoint从任务的运行实例经理。

我呼吁所有我在ThisAddIn_StartUp方法完成初始化的Dispose方法(在ThisAddIn_Shutdown方法),但是这不是帮助。

I have called the dispose methods(in ThisAddIn_Shutdown method) for all the initializations I have done in ThisAddIn_StartUp method but this is not helping.

private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
    {
        this.Application.WindowSelectionChange -= Application_WindowSelectionChange;
        this.Application.SlideSelectionChanged -= Application_SlideSelectionChanged;
        this.Application.SlideShowBegin -= Application_SlideShowBegin;
        this.Application.SlideShowEnd -= Application_SlideShowEnd;          
    }



我缺少的东西吗?

Am I missing something?

Anyhelp深受欢迎。
谢谢!

Anyhelp is most welcome. Thanks!

推荐答案

终于能找出病因。取出那件时,这是由于写在Ribbon.Designer.cs文件中的InitializeComponent()方法的自定义代码的几行。

Finally was able to find out the cause. It was due to a few lines of custom code written in the InitializeComponent() method in the Ribbon.Designer.cs file.

摆脱了问题代码。

这篇关于功能区选项卡即使在卸载后存在的PowerPoint外接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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