1. RTF from Bookmark, 2. menu appearing after Add-In uninstallatio

V

Vivek

Hi

I have got two issues with Word AddIn implemented using Extensibility2 in
VS2003

1. How do I get RTF formatted text from a Bookmark without using Clipboard ?
2. After uninstalling the Word Add-in the custom menu still appears, though
th custom toolbar doesn't... But the menu events do not fire... How to remove
the custom menu ?

Thanks in Advance,

Vivek
 
T

Tom Winter

For number 2, you might find my Dynamic Menus COM Add-In Sample Project
helpful. You can download it here:

http://www.amosfivesix.com/downloads/

I'm assuming we're talking about COM Add-Ins here. Though my sample project
is a VB6 add-in, the same principal would work with other languages. There's
a lot of other stuff in the sample code, but the basic idea is that you have
your own traditional .DOT "global template", that you would install along
with your add-in DLL. When your COM add-in starts, it uses
Application.AddIns.Add to load your .DOT global template. Then when you make
any menu customizations, you set Application.CustomizationContext to your
..DOT global template. You unload it when your COM Add-in unloads. Then when
you uninstall your application, have the .DOT file deleted too. Then, Poof,
all your menu customizations are gone, because none were ever made to
Normal.dot. And changing a user's Normal.dot is considered bad form anyway.
If you have any questions, let me know. I know I didn't explain it in
depth....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top