Why is my CreateRibbonExtensibilityObject method not called?

Hi, I used two methods to change the feed by adding MS Word (Visual Studio 2010, .NET 3.5), Microsoft.Office.Tools.Ribbon.OfficeRibbon and Microsoft.Office.Core. IRibbonExtensibility. I was hoping to switch between them in my add CreateRibbonExtensibilityObject, but for some reason it is not being called now. The documentation says that if addin implements CreateRibbonExtensibilityObject, it will be called. When I create a new project to test this, it works. I would prefer to abandon my project as is. Any ideas? Thanks.

+4
source share
1 answer

They are not interchangeable. The problem is that if you use an OfficeRibbon object (which is really good, it has a good designer, etc.), then IT implements createribboneextensibility material, and you have no way to intercept it.

Last year, I made a blog post discussing the issue of adding support for the new Office 2010 "Backstage view" support from VSTO 3 (VSTO 3 does not support Backstage, but it's still possible, d basically use the same technique to replace implementations support tape).

The real question is: why bother? If you have done the job of supporting IExtensibility2 (and then having the ability to fully define your tape object in XML), OfficeRibbon does not have much need. and if you use the Officibbon control, it can do jsut about everything you could explicitly specify xml, so why suffer from pain?

Blog Post http://www.vbfengshui.com/integrating-with-the-new-office-backstage-from-a-vsto-3-addin/

+1
source

Source: https://habr.com/ru/post/1310638/


All Articles