简体   繁体   中英

VSTO C# Excel add-in is not showing the name

I created an Excel Add-in in Visual Studio using C#, and it seems that the Tab Name is not showing. Disabling and enabling the add-in solves the issue, but it's not something that I can ask my customers to do... And if I close Excel I need to do the enable trick all over again. I tried changing the Tab ID, maybe it was to generic, did not work. Am I missing something? Is there something I need to do for the Tab Name to show?

As the file opened: 在此处输入图像描述

After disabling and enabling: 在此处输入图像描述

By default, if a VSTO Add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom ribbon does not appear, or why a ribbon appears but no controls appear and etc. Read more about that in the How to: Show Add-in user interface errors article.

Also it makes sense to use a getLabel callback for the ribbon tab. In that case you will be able to debug the code and see what is going on under the hood. Read more about the Ribbon UI (Fluent UI) in the following series of articles:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM