Michael Blaustein
Michael Blaustein

Reputation: 901

How do I get a Ribbon to show up in a Word VSTO Template that is loaded at startup?

  1. Start new "Word 2013 and 2016 VSTO Template" project in Visual Studio.
  2. Use existing template "Editman.dotm".
  3. Add New Item to Project: Ribbon (Visual Designer)
  4. Add a group to the ribbon and buttons to the group.
  5. Start Debugging. The new ribbon shows up, as expected.
  6. Publish solution.
  7. Run .exe from published solution on test machine.
  8. Open Word on test machine. New Ribbon does not appear.
  9. Open Editman.dotm on test machine. Ribbon shows up.
  10. Add Editman.dotm to the Word Startup folder. Run Word, ribbon still doesn't show up.

Question: Why does the ribbon show up when I double click on Editman.dotm, but doesn't show up when I have put Editman.dotm in the Word Startup folder?

Upvotes: 1

Views: 335

Answers (1)

Chris
Chris

Reputation: 3519

You need to create the project as a Word 2013 and 2016 VSTO Add-In. Template projects are for when you only want your changes to be present when editing documents that were created from a particular Word template (dotx or dotm). That's why you had to select a Word template when creating your project, and why it was only visible when you opened the published template.

Upvotes: 1

Related Questions