Commandbar not getting added to inspector when word is used as editor

K

kishore1021

Hi,
I have written a Com Add-in which adds a new Commandbar to the New Mai
window. I am using the NewInspector event to place a Commandbar wit
buttons on a new mail Inspector window , I.e. Whenever New Mail messag
window is opened. I have created a new commandbar and aded a ne
commandbutton on that newly created commandbar.

Everything is working fine if i use HTML as mail editor. If i use wor
as the default mail editor in outlook, then the commandbar is no
getting added and also the buttons.

Could someone please suggest me what i should do to add the commandbar
to the word mail editor when i open the new mail window.

I.e when I create a New mail message using MS Word mail editor option
what should i do to add my owm custom bar.

Thank
 
K

Ken Slovak - [MVP - Outlook]

Please post programming questions to one of the programming
newsgroups, and since you are using a posting interface that doesn't
put any of the preceding thread into a reply make sure to do that
manually so the thread can be followed.

Word emails are a real problem. In many versions of Outlook you don't
get a NewInspector event when a WordMail item is opened, and even in
those where you do get that event any CommandBars must be added using
Word code and not Outlook MailItem code.
 
K

kishore1021

Hi,
I guess i need to share some info on this commandbar that i am doing.

I was trying to add a new tool bar when we compose a mail
and also trying to customize my new toolbar to automatically contain
some already exiting outlook command buttons using com addin.
I.e. I have writeen a COM add-in to OutLook that adds a new
toolbar to the OutLook's Toolbar. There are two commands(buttons) by
name "Digitally sign Message" and "Encrypt Message Contents and
Attachments". These are already present in outlook commands.

The location where these are present is. So,These buttons are already
present in the standard command bar (This buttons will come only when
you try to customize the tool bar of new mail).
I.e.In new mail window, Tools -> Customize -> Commands ->
In categories select Standard -> on the Right side, if you
scroll down you can see commands(buttons) by
name "Digitally sign Message" and "Encrypt Message
Contents and Attachments".

On the whole, what i am i have placed the above two commands on my new
toolbar that i have created using com addin. These buttons have ID's of
718 and 719.

Now everything is fine. But when word is used as mail editor, i am also
getting the new inspector event and i am also able to decide which is
the mail editor. But after that, i am not able to add the two buttons
with id's 718 and 719 to outlook.

So as per your suggestion, how do i use word code here. I.e. some sore
of macro. Could you please send me some more information on this?

Thanks







Re: Commandbar not getting added to inspector when word is used as
editor Please post programming questions to one of the programming
newsgroups, and since you are using a posting interface that doesn't
put any of the preceding thread into a reply make sure to do that
manually so the thread can be followed.
 
K

Ken Slovak - [MVP - Outlook]

As I said in the thread in the other newsgroup (please only post
things in one place) you need to use Word macro code in the WordMail
template. Depending on Outlook version that could be a special
template or Normal.dot. The code would be placed in an autoexecute
macro that ran on startup. There is plenty of information on this in
the newsgroups, I'd suggest using Google to search for some threads on
the topic.
 

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