VB.Net COM Add-in for MS Wors 2003 Beta problem

jassi

New member
Joined
Aug 28, 2003
Messages
1
Hi gang,

I am currently developing a prototype which involves creating a COM Add-in using VB.Net, for MS Word 2003.

As usual, I am creating few menu buttons under the File and Tool menus. These buttons, i am creating in the OnStartupComplete event of the COM Add-ins connect class.

I am removing the created menu buttons, in the OnBeginShutdown event of the COM Add-ins connect class.

Now my problem is that when I install the add-in and run MS Word, i can see the custom created buttons. But when i close the MS Word, the custom created buttons are not being deleted. I have checked this.... i.e. i un-installed the COM-Add-in and run MS Word...the earlier created custom menu buttons were there! ...... and as per logic, since Word is deleting them everytime COM Add-in is closed, they should have not been there .....

I tested whether the menu buttons are being deleted in the OnBeginShutdown....but they were...but some how...they were being deleted temporarily.....and not permanentlly.

I wud like to mention here .. that I am using CommandBarControl and CommandBar objects to create the custom menu items. Also, I am using temporary=true parameter while adding the commandbarcontrol.

So, can anyone help me....its very urgent and I have already wasted lot of time on it!

Thanxs in advance for ur kind help!!!

Jassi
 
Back
Top