View Single Post
  #5  
Old September 30th 08, 02:14 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default My Outlook button appears in Word!

No solution for that problem that I've ever found. It can happen with the
Outlook editor also, you know. If an addin that gets initialized before
yours claims that spot in the UI yours get placed somewhere else no matter
what position settings you call for. Not much you can do about it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


wrote in message
...
Hi Ken,

You do not need a separate Word addin. In your Outlook addin if you
discover
that the window is using WordMail you instantiate a Word.Application
object
declared WithEvents. Then you handle the WindowActivate event. If the
Envelope.Visible property is true on the window passed to you in
WindowActivate then it's a WordMail window, if that property is false
it's a
Word document.


Whow, this worked perfectly. Needed some additional work, because this
does not work with OL2000, but managed to run. Thank you.

Is there a solution for Problem 1, too? If I have Word as editor it
seem to be impossible to reproduce the CommandBar position in a
reliable way. Sometimes, another CommandBar, that have been in the
same row before, is pushed down one row after inserting my own
CommandBar. Other situations, the button has been placed on top of the
"Send" CommandBar, and after restauration it is below the "Send"
CommandBar.

Any solution for this, too?

Kukulkan


Ads