View Single Post
  #4  
Old February 5th 09, 02:45 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Why Word toolbars are hidden when Outlook with WordMail is lau

You need to handle things as I mentioned. It doesn't matter if you want to
hide or show a Word or WordMail toolbar in either setup, you have to do the
same things. You have to iterate the CommandBars collection of the
Word.Document object (Inspector.WordEditor for a WordMail object) and find
the ones you want and enable/disable them as desired and set the visibility
as desired.

What Outlook and WordMail or Word on its own do on their own can be
overridden by your code. You just have to set things up as desired.

--
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


"Hichem S" wrote in message
...
Sorry Ken but this does not answer my question...
I actually went through all you described but I am doing it a little bit
different. I am actually hiding the outlook addin (using
inspector.IsWordMail) and I am using the Word addin when it comes to
handle
WordMail (using EnvelopeVisible) : if the Envelope is visible then I treat
the document as an email. If it's not i treat it as a word document. This
solution allow me not to play with WindowActivate/Deactivate to hide and
show
the toolbars : In fact only one toolbar is created by application.

I hope this will help to understand my question : When I open Outlook with
wordmail configured (I don't open yet a word application), Outlook hides
the
toolbar created by the Word process that was launched in the backgroud
(:wordmail).
If then I open Word my toolbars are infact Invisible...what happened?


Ads