Re: How to add button on Mail editor which is not outlook.??
- From: "Ken Slovak - [MVP - Outlook]" <kenslovak@xxxxxxxx>
- Date: Thu, 3 Jan 2008 09:19:03 -0500
If you add user interface to WordMail it will be there unless you handle the Word.WindowActivate event and check for window.EnvelopeVisible. If true it's a mail item, if false it's a Word item. You can use that to disable/enable your UI or to make it visible/invisible.
You also have to be careful in how you add your UI so it doesn't show up in Normal.dot and be there in all Word documents even if Outlook isn't running. You have to set the CustomizationContext where you want the UI created and set CustomizationContext.Saved = True after you add and delete your UI so the user doesn't get prompted to save Normal.dot.
You may also have to account for multiple open WordMail Inspectors and use unique Tag properties for each piece of UI you create so you can identify which instance of your UI to enable/disable. Seeing multiple instances of your UI is as bad as not seeing it when appropriate or seeing it when not appropriate.
--
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
"Ashok" <Ashok@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:4DB7A326-66A9-423C-AA97-04D41E9DA21C@xxxxxxxxxxxxxxxx
Hi,
I'm having similar kind of pblm. If I add any button to the outlook word
editor, then i open another word instance, the new word instance shows the
custom command bar which I've added to outlook word editor. But it shdn't
appear in the new word instance.
Could you pls advice me to achieve the same?
Thanks & Regards
Ashok
.
- Follow-Ups:
- References:
- Prev by Date: Re: Script to change the date of mails in a specific folder
- Next by Date: Re: event notification when compose/reply page/form open
- Previous by thread: Re: How to add button on Mail editor which is not outlook.??
- Next by thread: Re: How to add button on Mail editor which is not outlook.??
- Index(es):
Loading