Not able to call a function from custom menu item that is added in word menu(File)

J

jayrm100

Hi,

We are in the process of building VSTO 2005 customizations for MS Word
2003.
One of our requirements is to add menu items to both custom menus (say
MyMenu) and existing menus (say File)

Scenario 1:

We create a menu called MyMenu after Help menu in Microsoft Word 2003.
We add TestMenuItem under MyMenu and call a function which displays a
message box in TestMenuItem's click event

The function is getting called and the message is displayed.

Scenario 2:

We add TestMenuItem under File Menu in Microsoft Word 2003 and call a
function which displays a message box in TestMenuItem's click event

But the function is not getting called.

No Exceptions are displayed.

Can someone tell me what should be done in order for the function to
get called.

Thanks,
Jayashree
 

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