Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Outlook / Word conflict

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Outlook / Word conflict
bormesh[ at ]gmail.com 20.07.2006 14:01:43
Hello all,

I am currently working on an addin for Word that adds a custom toolbar
with one CommandBarButton. The addin works fine, and does what it is
supposed to do, but if I open Outlook first, the command bar and button
will apear on a new compose message. Also, opening Outlook first causes
the commandbar to be hidden when Microsoft Word is opened. Everything
works fine if it's the other order (Microsoft Word is opened first, and
then Outlook). Do I need to access the normal.dot template to fix this?
How do I not get the toolbar to show up in Outlook. I am aware that
composing a message in Outlook uses Word as the text editor, but there
must be a different template file for the toolbars? Has anyone
encountered this or can think of a solution?

Thank You,
Rob Heinen
Software Developer

Re: Outlook / Word conflict
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 20.07.2006 14:28:06
Everything goes where Word.CustomizationContext points, usually Normal.dot,
for all customizations.

Handle the Word.WindowActivate event. In that event check for
Window.EnvelopeVisible. If True then it's a WordMail item and hide your
buttons. If False it's a Word document window and make your buttons
visible/enabled.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


<bormesh[ at ]gmail.com> wrote in message
news:1153404103.258969.217390[ at ]p79g2000cwp.googlegroups.com...
[Quoted Text]
> Hello all,
>
> I am currently working on an addin for Word that adds a custom toolbar
> with one CommandBarButton. The addin works fine, and does what it is
> supposed to do, but if I open Outlook first, the command bar and button
> will apear on a new compose message. Also, opening Outlook first causes
> the commandbar to be hidden when Microsoft Word is opened. Everything
> works fine if it's the other order (Microsoft Word is opened first, and
> then Outlook). Do I need to access the normal.dot template to fix this?
> How do I not get the toolbar to show up in Outlook. I am aware that
> composing a message in Outlook uses Word as the text editor, but there
> must be a different template file for the toolbars? Has anyone
> encountered this or can think of a solution?
>
> Thank You,
> Rob Heinen
> Software Developer
>

Re: Outlook / Word conflict
"Rob" <bormesh[ at ]gmail.com> 20.07.2006 16:38:15

Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> Everything goes where Word.CustomizationContext points, usually Normal.dot,
> for all customizations.
>
> Handle the Word.WindowActivate event. In that event check for
> Window.EnvelopeVisible. If True then it's a WordMail item and hide your
> buttons. If False it's a Word document window and make your buttons
> visible/enabled.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
>

Thanks for the help Ken. It worked perfectly. Sorry about the double
post, I won't do that in the future (I'm new here).

Thanks again,
Rob Heinen

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net