A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Problem when adding new toolbar on NewInspector when editor type in Word - Outlook 2003



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 7th 07, 08:35 AM posted to microsoft.public.outlook.program_addins
Harry
external usenet poster
 
Posts: 3
Default Problem when adding new toolbar on NewInspector when editor type in Word - Outlook 2003

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

  #2  
Old February 7th 07, 04:18 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Problem when adding new toolbar on NewInspector when editor type in Word - Outlook 2003

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" wrote in message
oups.com...
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


  #3  
Old March 26th 07, 10:45 AM posted to microsoft.public.outlook.program_addins
Mohit
external usenet poster
 
Posts: 6
Default Problem when adding new toolbar on NewInspector when editor type in Word - Outlook 2003

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.

  #4  
Old March 26th 07, 03:25 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Problem when adding new toolbar on NewInspector when editor type in Word - Outlook 2003

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" wrote in message
ups.com...
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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem when adding new toolbar on NewInspector when editor type is Word - Outlook 2003 Harry Outlook - General Queries 1 February 7th 07 03:06 PM
Problem using word as email editor Zaphod2003 Outlook and VBA 3 September 27th 06 03:29 AM
PDF toolbar in email template using Word as Email editor. Jamie W#749 Outlook - Installation 1 September 8th 06 04:46 AM
Problems with toolbar in outlook when using word as editor Marcin Junger Outlook - General Queries 0 September 7th 06 05:40 PM
New message toolbar when Word is email editor jw Outlook - General Queries 1 June 6th 06 11:10 PM


All times are GMT +1. The time now is 12:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.