Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Problem when adding new toolbar on NewInspector when editor type in Word - Outlook 2003

Geek News

Problem when adding new toolbar on NewInspector when editor type in Word - Outlook 2003
"Harry" <harshal.choudhari[ at ]gmail.com> 2/7/2007 7:35:49 AM
Hi,
I am getting problem when i am trying to add new toolbar on
NewInspector window of Outlook 2003.

1) I am able to add a new toolbar, but my first problem is that, this
added toolbar is also gets visible/enable when i open the Word
Application. That is the CommandBar of Word Application also gets
modified when i modify the CommandBar of Inspector collection of
Outlook 2003.

2) And my second problem is----
I have added the button on this new toolbar. It works
fine for single instance of Inspector, but when there are multiple
instance of Inspector then on click of button the fuctionality of it
gets call by number of times as much as instance of Inspector are
open.

Please help out, i am really get frusted as i have spend lots of time
on it and i have to submit this as early as possible.

-Thanks

Re: Problem when adding new toolbar on NewInspector when editor type in Word - Outlook 2003
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/7/2007 3:18:08 PM
You will need to handle Word events in your Inspector handler. When the
Word_WindowActivate event fires you need to check for wn.EnvelopeVisible =
True. If that is true you are in an active email window, if false it's a
Word document window.

If it's a Word document you need to hide your UI by setting the .Visible and
..Enabled properties to false. Set them true if it's an email window.

You also will probably have to re-instantiate your button objects and other
UI each time you access it that way, or you will get errors that the
properties are not available. That's a specific problem, as is the fact that
Word does not honor the Temporary := True argument. So you will have to
explicitly delete your UI when the Inspector is closing.

Google for other posts I've made here and in the other Outlook programming
groups about the other problems with WordMail Inspectors and how to handle
them. You'll also find code samples.

For your other problem you will need to add a unique Tag property to each
button and other UI object you create. You will also need to set up an
Inspector wrapper class and collection to handle multiple open Inspectors.

Since you did not mention what language you are programming in or what
development platform you are using I can't recommend any specific Inspector
wrapper samples, but they are out there for VB 6 and VB.NET and C#.

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


"Harry" <harshal.choudhari[ at ]gmail.com> wrote in message
news:1170833749.425912.205910[ at ]l53g2000cwa.googlegroups.com...
[Quoted Text]
> Hi,
> I am getting problem when i am trying to add new toolbar on
> NewInspector window of Outlook 2003.
>
> 1) I am able to add a new toolbar, but my first problem is that, this
> added toolbar is also gets visible/enable when i open the Word
> Application. That is the CommandBar of Word Application also gets
> modified when i modify the CommandBar of Inspector collection of
> Outlook 2003.
>
> 2) And my second problem is----
> I have added the button on this new toolbar. It works
> fine for single instance of Inspector, but when there are multiple
> instance of Inspector then on click of button the fuctionality of it
> gets call by number of times as much as instance of Inspector are
> open.
>
> Please help out, i am really get frusted as i have spend lots of time
> on it and i have to submit this as early as possible.
>
> -Thanks
>

Re: Problem when adding new toolbar on NewInspector when editor type in Word - Outlook 2003
"Mohit" <mohitscjain[ at ]gmail.com> 3/26/2007 8:45:11 AM
I am also facing the same problem of toolbar also added to other
running instances of word when one is added to Word instance of
Outlook.

I am not getting how to handle the Word event in Outlook Inspector
handler. Please give more information on it.

Thanks in advance.

Re: Problem when adding new toolbar on NewInspector when editor type in Word - Outlook 2003
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 3/26/2007 1:25:40 PM
Please do not hijack old threads.

Did you google for posts I've made in this and other programming groups
about how to handle WordMail? I've posted solutions many times.

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


"Mohit" <mohitscjain[ at ]gmail.com> wrote in message
news:1174898711.160192.291670[ at ]o5g2000hsb.googlegroups.com...
[Quoted Text]
>I am also facing the same problem of toolbar also added to other
> running instances of word when one is added to Word instance of
> Outlook.
>
> I am not getting how to handle the Word event in Outlook Inspector
> handler. Please give more information on it.
>
> Thanks in advance.
>

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