PC Review


Reply
Thread Tools Rate Thread

Enable Outlook Add-in when Word Editor is enabled in Outlook 2003

 
 
Hichem Sarrai
Guest
Posts: n/a
 
      1st Aug 2008
Hi,
When I open an inspector for a new mail in outlook 2003, the inspector loads
the word add-in I created which is different from my outlook addin. How can I
load the outlook addin instead of the word one?
Thanks for your help
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      1st Aug 2008
You can't control that with WordMail 2003 or earlier.

--
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 Sarrai" <(E-Mail Removed)> wrote in message
news:07EDE7AD-5E81-46C4-8C6B-(E-Mail Removed)...
> Hi,
> When I open an inspector for a new mail in outlook 2003, the inspector
> loads
> the word add-in I created which is different from my outlook addin. How
> can I
> load the outlook addin instead of the word one?
> Thanks for your help


 
Reply With Quote
 
Hichem Sarrai
Guest
Posts: n/a
 
      1st Aug 2008
Hi,

What I understand is that when the Envelope is visible, then I should
implement in my word-add the functionalities that are performed in my outlook
add-in...
If yes, then how can I access field such as Subject, To, CC in the envelope?

How to get the MailItem while I am in the word editor? how cas I save the
current document as an email (.msg)?

Thank you for you help?



"Ken Slovak - [MVP - Outlook]" wrote:

> You can't control that with WordMail 2003 or earlier.
>
> --
> 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 Sarrai" <(E-Mail Removed)> wrote in message
> news:07EDE7AD-5E81-46C4-8C6B-(E-Mail Removed)...
> > Hi,
> > When I open an inspector for a new mail in outlook 2003, the inspector
> > loads
> > the word add-in I created which is different from my outlook addin. How
> > can I
> > load the outlook addin instead of the word one?
> > Thanks for your help

>
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      2nd Aug 2008
No, both addins are completely separate.

Any email related functionality should be implemented in the Outlook addin,
Word document functionality in the Word addin. When in the Outlook addin
handle Word.WindowActivate() to see which UI to enable/disable by checking
for Window.Envelope.visible == true (email item). Use that to enable/disable
your Outlook created UI. Use the same event in Word to enable/disable any
Word created UI.

That way both are independent and don't conflict with each other.

--
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 Sarrai" <(E-Mail Removed)> wrote in message
news:CE6A856B-FB19-4737-AE2A-(E-Mail Removed)...
> Hi,
>
> What I understand is that when the Envelope is visible, then I should
> implement in my word-add the functionalities that are performed in my
> outlook
> add-in...
> If yes, then how can I access field such as Subject, To, CC in the
> envelope?
>
> How to get the MailItem while I am in the word editor? how cas I save the
> current document as an email (.msg)?
>
> Thank you for you help?


 
Reply With Quote
 
Hichem Sarrai
Guest
Posts: n/a
 
      4th Aug 2008
Hi Ken,
Should I then understand that every time an envelope is visible (In Word or
in Outlook), then I can't treat it as an email? (For example I can't save it
as an email)

To make myself understood, did you ask me also to disable my word add-in
every time I have an envelope visible?

Thank you for ur help.


"Ken Slovak - [MVP - Outlook]" wrote:

> No, both addins are completely separate.
>
> Any email related functionality should be implemented in the Outlook addin,
> Word document functionality in the Word addin. When in the Outlook addin
> handle Word.WindowActivate() to see which UI to enable/disable by checking
> for Window.Envelope.visible == true (email item). Use that to enable/disable
> your Outlook created UI. Use the same event in Word to enable/disable any
> Word created UI.
>
> That way both are independent and don't conflict with each other.
>
> --
> 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 Sarrai" <(E-Mail Removed)> wrote in message
> news:CE6A856B-FB19-4737-AE2A-(E-Mail Removed)...
> > Hi,
> >
> > What I understand is that when the Envelope is visible, then I should
> > implement in my word-add the functionalities that are performed in my
> > outlook
> > add-in...
> > If yes, then how can I access field such as Subject, To, CC in the
> > envelope?
> >
> > How to get the MailItem while I am in the word editor? how cas I save the
> > current document as an email (.msg)?
> >
> > Thank you for you help?

>
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      4th Aug 2008
If Window.Envelope.Visible = true then it is an email item. There's very
little information you can get from that using the Word object model in a
Word addin. If it's an email item use Outlook code to deal with it in the
Outlook addin.

Whether or not you disable your Word addin and any UI it might create when
the item is a WordMail item is up to you. Do you want your addin running and
its UI showing in that case? If so then don't disable your Word addin and
its UI. If you don't want it there in a WordMail item then disable its UI. I
can't know what you want.

--
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 Sarrai" <(E-Mail Removed)> wrote in message
news:2F7EAEFE-3824-405A-B2F6-(E-Mail Removed)...
> Hi Ken,
> Should I then understand that every time an envelope is visible (In Word
> or
> in Outlook), then I can't treat it as an email? (For example I can't save
> it
> as an email)
>
> To make myself understood, did you ask me also to disable my word add-in
> every time I have an envelope visible?
>
> Thank you for ur help.


 
Reply With Quote
 
Hichem Sarrai
Guest
Posts: n/a
 
      4th Aug 2008
I am confused!!
My comments are included in yours!

> If Window.Envelope.Visible = true then it is an email item. There's very
> little information you can get from that using the Word object model in a
> Word addin. If it's an email item use Outlook code to deal with it in the
> Outlook addin.

*The problem is that case (in the case of a Word Editor in Outlook) the
outlook add-in is not loaded? (that was my first question in this thread and
you said that both addins are completely independents)
* When you say email item do you see it as _MailItem object?

>
> Whether or not you disable your Word addin and any UI it might create when
> the item is a WordMail item is up to you. Do you want your addin running and
> its UI showing in that case? If so then don't disable your Word addin and
> its UI. If you don't want it there in a WordMail item then disable its UI. I
> can't know what you want.

What I do in Outlook : When I click on a button X and an email item is
selected, then some code runs. The final result of this is a ".msg file" that
have all the information concerning the email (Subject, To, CC,
Attachement....)
I want to do the same when I have a word editor (envelope is visible) ???

Thank you for ur help

>
> --
> 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 Sarrai" <(E-Mail Removed)> wrote in message
> news:2F7EAEFE-3824-405A-B2F6-(E-Mail Removed)...
> > Hi Ken,
> > Should I then understand that every time an envelope is visible (In Word
> > or
> > in Outlook), then I can't treat it as an email? (For example I can't save
> > it
> > as an email)
> >
> > To make myself understood, did you ask me also to disable my word add-in
> > every time I have an envelope visible?
> >
> > Thank you for ur help.

>
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      4th Aug 2008
Inline.

--
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 Sarrai" <(E-Mail Removed)> wrote in message
news:87F10F1C-93BE-4602-A4A2-(E-Mail Removed)...
>I am confused!!
> My comments are included in yours!
>
>> If Window.Envelope.Visible = true then it is an email item. There's very
>> little information you can get from that using the Word object model in a
>> Word addin. If it's an email item use Outlook code to deal with it in the
>> Outlook addin.

> *The problem is that case (in the case of a Word Editor in Outlook) the
> outlook add-in is not loaded? (that was my first question in this thread
> and
> you said that both addins are completely independents)


They are independent. One runs in Word and the other runs in Outlook. In the
case of WordMail 2003 or earlier both would be active since Word is invoked
and the item is an Outlook mail item.

> * When you say email item do you see it as _MailItem object?


Yes, in Outlook I see a mail item in the Inspector I'm handling. There is no
MailItem in Word and I don't use Word to deal with the item.

>
>>
>> Whether or not you disable your Word addin and any UI it might create
>> when
>> the item is a WordMail item is up to you. Do you want your addin running
>> and
>> its UI showing in that case? If so then don't disable your Word addin and
>> its UI. If you don't want it there in a WordMail item then disable its
>> UI. I
>> can't know what you want.

> What I do in Outlook : When I click on a button X and an email item is
> selected, then some code runs. The final result of this is a ".msg file"
> that
> have all the information concerning the email (Subject, To, CC,
> Attachement....)
> I want to do the same when I have a word editor (envelope is visible) ???


So do the same thing when you have a WordMail item, deal with it in Outlook
code.

You had originally asked about not showing the incorrect UI or multiple
copies of the UI and I answered that.

>
> Thank you for ur help


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
word 2003 signature editor for Outlook - how Outlook recognize stevemalee Microsoft Word Document Management 0 11th Jun 2008 12:36 PM
Outlook 2003 word email editor stops when replying to Outlook 2007 Samyra Microsoft Outlook Discussion 4 8th May 2008 12:36 AM
Where is the group policy option to enable or disable 'Word as email editor' in Outlook XP? QH Microsoft Outlook 5 11th Apr 2006 04:47 PM
Where is the group policy option to enable or disable 'Word as email editor' in Outlook XP? QH Microsoft Outlook Discussion 5 11th Apr 2006 04:47 PM
Where is the group policy option to enable or disable 'Word as email editor' in Outlook XP? QH Microsoft Windows 2000 Active Directory 5 11th Apr 2006 04:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:50 PM.