使用Visual Studio 2015时,自定义加载项选项卡不显示在WORD中 [英] Custom Add-In tab does not show in WORD when using Visual Studio 2015

查看:165
本文介绍了使用Visual Studio 2015时,自定义加载项选项卡不显示在WORD中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完全按照
MSDN教程
 创建 WORD 2010 AddIn选项卡。我正在使用VS2015社区版。但是当我在Visual Studio中运行应用程序时,它会打开Word文档,但Tab不会显示在WORD中(正如turorial的测试步骤所声称的那样)。
所以,我无法测试AddIn。


但是,我可以在WORD的COM加载项窗口中看到上面的AddIn,如下图所示。此外,当我在以下过程中放置​​断点时,我可以看到此过程被成功调用:

 protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject( )
{
返回新的MyRibbon();
}


解决方案


根据你的描述,我认为自定义ui可能有问题,是你确定你使用与MSDN教程相同的所有代码吗?


你可以选择选项如下图所示,检查自定义ui是否有任何问题。


点击文件 - > Option-> Advanced->显示加载项用户界面错误并再次测试加载项。



问候,


Celeste


I followed exactly this MSDN Tutorial to create a WORD 2010 AddIn Tab. I am using VS2015 Community Edition. But when I run the app in Visual Studio, it opens the Word document but the Tab does not show up in WORD (as claimed by the testing steps of the turorial). So, I cannot test the AddIn.

However, I can see the above AddIn in the COM Add-Ins window of the WORD as enabled as shown in the image below. Also, when I place  break point in the following procedure, I can see this procedure is called successfully:

protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
{
     return new MyRibbon();
}

解决方案

Hi,

According to your description, I think it may be something wrong with custom ui, are you sure you use all the code same as MSDN Tutorial?

You could select option like below picture to check if there is anything wrong with custom ui.

Click File->Option->Advanced->Show add-in user interface errors and test the add-in again.

Regards,

Celeste


这篇关于使用Visual Studio 2015时,自定义加载项选项卡不显示在WORD中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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