Outlook mail window editable?

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

Outlook mail window editable?
 
Alfred Dworschak




Posts: 13
Joined: 2007-03-06
dear AIE-Team,

is there any way to get the current status of the mail-window? if it is editable (new mail/forward) or uneditable (double click inbound mail)

regards

alfred
Posted 10 May, 2007 09:28:39 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Alfred.

Please use the Sent property of the Outlook._MailItem interface.


P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 10 May, 2007 09:57:28 Top
Alfred Dworschak




Posts: 13
Joined: 2007-03-06
hi sergey,

have you got an example?

regards

alfred
Posted 15 May, 2007 04:41:29 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Alfred.

private void adxCommandBarButton1_Click(object sender)
{
object item = null;
Outlook._MailItem mail;
Outlook._Inspector insp = null;

try
{
insp = OutlookApp.ActiveInspector();
item = insp.CurrentItem;
if (item is Outlook._MailItem)
{
mail = (item as Outlook._MailItem);
if (mail.Sent)
{
//an inbound email
}
else
{
// a new/forwarded email
}
}
}
finally
{
if (item != null)
Marshal.ReleaseComObject(item);
if (insp != null)
Marshal.ReleaseComObject(insp);
}
}
Posted 15 May, 2007 09:48:50 Top
Alfred Dworschak




Posts: 13
Joined: 2007-03-06
thank you very much!

incredible support as always!

regards

alfred
Posted 20 May, 2007 14:07:25 Top