How to get the handle of word?

  • Thread starter Thread starter Rigoletto Eikenberg
  • Start date Start date
R

Rigoletto Eikenberg

Hello,

when outlook uses "word as email-editor" how can i get the handle of it?

Rigoletto
 
Do you mean handle as in window handle? QI the Inspector for IOleWindow,
then call IOleWindow::GetWindow().

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Hello,

no i mean something like this handle:

Set wrd = CreateObject("word.application")

But i need the "wrd"-handle that is created when outlook uses "word as
email-editor".
Is there a way?

Rigoletto
 
Hi,
I am also facing the same problem.
To state you in brief, I have developed a com addin and
everything is working fine but in the last moment, i have
found that it dosen't work when we use mail editor in
outlook.

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. 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). In new
mail window, The location where these are present is:
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 when i use HTML as mail editor. But
when word is used as mail editor, i am also getting the
new inspector event and i am also able to find out what is
the mail editor. But after that, if word is used as
editor, i am not able to add the two buttons with id's 718
and 719 to outlook word mail.

Could you splease send me some information on how to do
this?

Thanks & Regards,
Kishore Babu
 
Hello Kishore,

my problem is another. Sorry, i think i can´t help you. I have develop an
outlook form to publish word .dot-files and install a .dot-file as addin.
This is updated with the form, users name etc. used by the word .dot-files.
When outlook uses "word as email-editor" the addin .dot-file is blocked so i
cant update it. I think when i work with the outlook word handle i can slove
it.

If you like, i can send you this form to publish your com-addin.

Rigoletto
 
What do you mean by "i am not able to add the two buttons with id's ..."? Do
you mean they don't show up? Or simply do not work?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Hi,
Yes sure. I have written all the code and working fine. I
am also able to get the word handle, but when adding the
buttons, it is failing
 
Back
Top