Hiding inspector bar

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

Hiding inspector bar
showing inspector bar only when user is reading the mail 
Rup Go




Posts: 64
Joined: 2007-03-01
Hi

I'm trying to create an inspector command bar that will only show whenever user read an email, other than that it should be hidden. example: when user wants to compose new mail or reply to the mail the inspector bar shouldn't be shown.

can someone point me to the right direction if there was a similar post?

thanks!


Posted 29 Mar, 2007 21:06:19 Top
David Ing




Posts: 39
Joined: 2007-02-16
How about something like this...


void adxOutlookEvents_InspectorAddCommandBars(object sender, object inspector, string folderName)
{
  MailItem mi = (MailItem)inspector.CurrentItem; 
  if (mi.Sent == true) // Indicates that we are in read-only mode
  {
    adxOlInspectorCommandBar1.Visible= false;
  }
Posted 30 Mar, 2007 06:32:00 Top
Sergey Grischenko


Add-in Express team


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

Please look at the following example:
http://www.add-in-express.com/projects/newmessageexample.zip
The example displays a command bar for new mails but I think you will able to change it so that the command bar will be shown for incomming emails only.

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 30 Mar, 2007 09:15:14 Top
Rup Go




Posts: 64
Joined: 2007-03-01
Thank a lot, Sergey and David. It works!
Posted 02 Apr, 2007 22:06:52 Top
Rup Go




Posts: 64
Joined: 2007-03-01
Hi again,

im wondering why the inspector command bar doesnt appear when using MS WORD as the reader?

thanks in advance
Posted 12 Apr, 2007 23:30:49 Top
Sergey Grischenko


Add-in Express team


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

This is a known issue of Outlook. If you use Word to read Rich text email messages, inspector command bars are not accessible.


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 13 Apr, 2007 11:16:34 Top