D
David Thielen
I am writing a Word add-in using C#. I want the add-in to only show up
in the menu when the user wants it. It’s ok if the code is loaded as
long as the user doesn’t see it.
So the question is, what is the "best practices" to implement this. I
wrote my sample using VSTO/C# as that is what Visual Studio creates
for a Word Template. However, based on how I think it works (and I am
only 90% positive on this), you set the Assembly Link Location to the
location of the .dll which won’t work for someone shipping a Word
add-in to users as everyone will install in a different place.
Otherwise this solution appears perfect as it
The other approach suggested is using IDTExensibility2. My worries
about using it are first that it is not the suggested approach (I am
assuming) as there is no way to create this type of Word add-in in the
Microsoft Office System Projects wizard in Visual Studio. And second I
think that this approach would require that the add-in always be in
the Word menu.
So the question is: For an add-in when you do not always want it in
the Word menu: what approach should be used?
thanks - dave
in the menu when the user wants it. It’s ok if the code is loaded as
long as the user doesn’t see it.
So the question is, what is the "best practices" to implement this. I
wrote my sample using VSTO/C# as that is what Visual Studio creates
for a Word Template. However, based on how I think it works (and I am
only 90% positive on this), you set the Assembly Link Location to the
location of the .dll which won’t work for someone shipping a Word
add-in to users as everyone will install in a different place.
Otherwise this solution appears perfect as it
The other approach suggested is using IDTExensibility2. My worries
about using it are first that it is not the suggested approach (I am
assuming) as there is no way to create this type of Word add-in in the
Microsoft Office System Projects wizard in Visual Studio. And second I
think that this approach would require that the add-in always be in
the Word menu.
So the question is: For an add-in when you do not always want it in
the Word menu: what approach should be used?
thanks - dave