Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / February 2006

Tip: Looking for answers? Try searching our database.

Outlook 2003 first email open problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy Larter - 13 Feb 2006 14:38 GMT
Hi,

I'm having a problem with my Outlook 2003 addin.

My addin is required to process e-mails before the user reads the
text. When a new inspector is opened, my addin examines the body text
and if necessary processes the text and stores the result back into
the Body member.

This works fine for most of the time. Unfortunately it seems that
Outlook is replacing my body text when the first email is read. The
new inspector event gets fired, my processing runs and replaces the
body but by the time the email is displayed, the original text is back
in the Body member. After the first mail item is opened, the addin
works fine.

Can anyone suggest a work around for this problem? If I execute my
code in response to a toolbar button click, the processing works ok,
so at the minute I have to tell users to manually click the button the
first time they read a mail (which isn't very friendly).

Thanks in advance,

Andy
Ken Slovak - [MVP - Outlook] - 14 Feb 2006 19:19 GMT
Try waiting until the first Inspector.Activate event fires before making the
change and see what happens. Set a flag in that code so it won't run again
if the Inspector becomes deactivated and then re-activated.

Signature

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

> Hi,
>
[quoted text clipped - 20 lines]
>
> Andy
Andy Larter - 20 Feb 2006 11:58 GMT
Thanks Ken. It was a good suggestion but it still seems to be too
early. The body is still being replaced.

Andy.

>Try waiting until the first Inspector.Activate event fires before making the
>change and see what happens. Set a flag in that code so it won't run again
>if the Inspector becomes deactivated and then re-activated.
Ken Slovak - [MVP - Outlook] - 20 Feb 2006 14:51 GMT
There has to be something else going on then. I've never seen Outlook behave
differently in this respect for the first email opened up and later ones.

Is this with WordMail only or the Outlook editor only or with either editor?
Anything like message format causing any differences (HTML, plain text,
RTF)?

Signature

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 Ken. It was a good suggestion but it still seems to be too
> early. The body is still being replaced.
>
> Andy.
Andy Larter - 21 Feb 2006 17:26 GMT
We are currently not suporting WordMail (this will be added in the
next version). The problem is exactly the same for plain text, HTML,
and rich text.

>There has to be something else going on then. I've never seen Outlook behave
>differently in this respect for the first email opened up and later ones.
>
>Is this with WordMail only or the Outlook editor only or with either editor?
>Anything like message format causing any differences (HTML, plain text,
>RTF)?
Ken Slovak - [MVP - Outlook] - 22 Feb 2006 15:17 GMT
Well, I've still never seen that behavior in any of my addins so something
else must be going on.

Signature

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

> We are currently not suporting WordMail (this will be added in the
> next version). The problem is exactly the same for plain text, HTML,
> and rich text.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.