CopyPastor

Detecting plagiarism made easy.

Score: 0.8275045030646854; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2022-11-27
by Eugene Astafiev

Original Post

Original - Posted on 2022-09-27
by Eugene Astafiev



            
Present in both answers; Present only in the new answer; Present only in the old answer;

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. See [To show VSTO Add-in user interface errors][1] for more information.
Also Microsoft Office applications can disable VSTO add-ins that behave unexpectedly. If an application does not load your VSTO add-in, the application might have hard disabled or soft disabled your VSTO Add-in.
Hard disabling can occur when a VSTO add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the `Startup` event handler in your VSTO add-in is executing.
Soft disabling can occur when a VSTO add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable a VSTO Add-in if it throws an unhandled exception while the Startup event handler is executing. Read more about that in the [How to: Re-enable a VSTO Add-in that has been disabled][2] article.
But I'd suggest contacting add-in developers instead.

[1]: https://learn.microsoft.com/en-us/visualstudio/vsto/how-to-show-add-in-user-interface-errors?view=vs-2022#to-show-vsto-add-in-user-interface-errors [2]: https://learn.microsoft.com/en-us/visualstudio/vsto/how-to-re-enable-a-vsto-add-in-that-has-been-disabled?view=vs-2022
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][1] 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:
- [Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)][2] - [Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)][3] - [Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)][4]

[1]: https://learn.microsoft.com/en-us/visualstudio/vsto/how-to-show-add-in-user-interface-errors?view=vs-2022 [2]: https://learn.microsoft.com/en-us/previous-versions/office/developer/office-2007/aa338202(v=office.12)?redirectedfrom=MSDN [3]: https://learn.microsoft.com/en-us/previous-versions/office/developer/office-2007/aa338199(v=office.12)?redirectedfrom=MSDN [4]: https://learn.microsoft.com/en-us/previous-versions/office/developer/office-2007/aa722523(v=office.12)?redirectedfrom=MSDN

        
Present in both answers; Present only in the new answer; Present only in the old answer;