Determine current view of Outlook explorer.

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

Determine current view of Outlook explorer.
 
Andriy


Guest


Hello!

My add-in should change its location depending the reading pane's visibility, but on the Mails view only.
Is there a way to determine the current view of Outlook explorer ("Mails", "Calendar", "People" etc.)?

Thanks.
Posted 30 Jan, 2019 07:56:21 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Andriy,

If you talk about the current Navigation module, get Explorer.NavigationPane.CurrentModule and check NavigationModule.NavigationModuleType.

If however you talk about the current folder being an email folder, get Explorer.CurrentFolder: MAPIFolder.DefaultItemType returns OlItemType.olMailItem for email folders.


Andrei Smolin
Add-in Express Team Leader
Posted 30 Jan, 2019 09:20:25 Top
Andriy


Guest


NavigationModuleType is exactly what I've been looking for.

Thanks a lot for your help!
Posted 30 Jan, 2019 09:45:44 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
You are welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 30 Jan, 2019 09:53:02 Top