Closing MailInspector with CommandBar button click.

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

Closing MailInspector with CommandBar button click.
 
Oliver Degnan




Posts: 54
Joined: 2005-02-03
Do you know how the Mail Inspector (New e-mail form) can be closed by clicking a custom button in the Standard Command Bar?

Thanks guys.
(I love your AddinExpress.NET)
Posted 25 Mar, 2005 14:48:26 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Oliver.

Try the code below.

Outlook._Inspector inspector = OutlookApp.ActiveInspector();
if (inspector != null)
{
try
{
inspector.Close(Outlook.OlInspectorClose.olSave);
}
finally
{
Marshal.ReleaseComObject(inspector);
}
}
Posted 28 Mar, 2005 04:40:21 Top