After installing Word version 2405 on May 30, 2024, custom context menu items are not displayed

Joan López 5 Reputation points
2024-06-05T14:39:52.1466667+00:00

Hello.

Since the Word update to version 2405 on May 30, 2024, we have detected that the custom items in the Word context menu appear blank. We use VSTO with c# to interoperate with Word.

It seems that CommandBar.FindControl does not find the control, returning a null value. In versions before 2405, the return value was a CommandBarButton.

To locate the CommandBarButton control we use:

CommandBarButton control = (CommandBarButton)commandBar.FindControl(Type: MsoControlType.msoControlButton, Id: this.missing, Tag: tag, Visible:true, Recursive: true);

Is it possible that there is a bug in that version?

Sample of how context menu is displayed: image.png

Thanks a lot!

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,684 questions
0 comments No comments
{count} votes