Choose Use Office word 2003 to edit email messages leads to fails

  • Thread starter Thread starter James Wang
  • Start date Start date
J

James Wang

All,

I have programmed addin for outlook 2003. The addin is used for encryption
and decryption of all mail message bodies. Commonly it does work well with
exception of using office word 2003 to edit email messages in tool options.
I tried to debug and find the root cause. Finally I found the
inSpection->get_commandbars can not work well.

Meanwhile, I do the tests on lots of PC. There is no failures in one PC
though I use the word 2003 to edit email messages. But others have still the
problem.

Please help me to resolve the problem.

Thanks and regards,
 
Where are you trying to get the CommandBars collection of the email, in
which event handler? It shouldn't be in NewInspector, it should be in the
first Inspector.Activate event handler.
 
Thanks for your reply.

Actually I use the VC to develop on Addin dll for outlook and dll can create
a new item "Security" on the menu of outlook item. Through clicking the menu
item, some operations will be executed.

In the code, through overriding the OnConnect and Invoke function to get the
appliaction and inspector pointer. Then _CommandBars will be got by using the
"Inspector->get_CommandBars" function, and the top menu is also got. The new
menu item will be added in the menu.

If I uncheck the "using the office word 2003 to edit email message" in the
Tool->options->mail format, the menu item will occur and the operations do
work well.

However the choose is checked, the menu will not occur. I found the word
menu will take place of the outlook menu and it maybe the root cause.

Please help me to resolve the problem.

Thanks and regards,
 
Did you look at my answer at all? Where are you trying to get the command
bars, in what event handler? You should not use NewInspector if that's what
you're doing, you should be using the first Inspector.Activate event.

If you do things correctly you can add your own toolbar to the existing
commandbars of the WordMail Inspector. You can't modify the existing
toolbars.
 
But is it possible to read the existing tool bars controls in a
WordMail Inspector?
 
Back
Top