Unnecassary Save Changes prompt in Inspector

Add-in Express™ Support Service
That's what is more important than anything else

Unnecassary Save Changes prompt in Inspector
 
Nathan Pledger




Posts: 33
Joined: 2009-01-09
Hi,

I have some code on the NewInspector event that follows:


global::Outlook.Inspector adxInspector = inspector as global::Outlook.Inspector;
this.adxOlInspectorCommandBar.Position = AddinExpress.MSO.ADXMsoBarPosition.adxMsoBarTop;
object o = adxInspector.CurrentItem;


(There is more code but I have tested commenting it out and I still have the same effect.)

When I close the message, I get the save prompt "Do you want to save changed to this message?". Which is odd, because I haven't changed it! It tends to happen to messages with attachments.

Is MailItem honouring Quantum Physics and changing its state just by my having looked at it? I wondered if casting an item out to a _MailItem could have done this, but again, skipping that code didn't really help.

Any ideas?


Posted 21 Jan, 2009 10:24:24 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Nathan,

I have just answered you in another thread. Please don't duplicate forum threads.
.NET, Extended MAPI, Windows Phone & RT
Posted 21 Jan, 2009 10:31:21 Top