Enable Outlook Add-In automatically

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

Enable Outlook Add-In automatically
 
Andriy




Posts: 34
Joined: 2018-03-13
Hello!

I am developing an Outlook Add-In with Add-in Express Regions for Microsoft Outlook and VSTO.

I would like to implement the following scenario: my add-in is initailly disabled on Outlook start. Then I would like the add-in to be autmatically enabled after Outlook is fully loaded.

Are there any ways to implement this without creating a separate add-in?
Posted 20 Aug, 2019 06:39:57 Top
nwein




Posts: 544
Joined: 2011-03-28
Perhaps this is what you're looking for?
Posted 20 Aug, 2019 08:26:55 Top
Andriy




Posts: 34
Joined: 2018-03-13
Yes, the issue discussed in that topic is similar.
Just want to clarify whether ADXAddinModule and particulary ADXAddinModule.OnRibbonLoaded event are still available. Where can I find it?
Posted 20 Aug, 2019 09:33:15 Top
nwein




Posts: 544
Joined: 2011-03-28
Oh, I'm terribly sorry, I didn't see you're targeting Regions. I'll let Andrei answer...
Posted 20 Aug, 2019 09:54:35 Top
Andriy




Posts: 34
Joined: 2018-03-13
Ok, thanks. I will wait for Andrei's response.
Posted 21 Aug, 2019 06:26:51 Top
Andrei Smolin


Add-in Express team


Posts: 16670
Joined: 2006-05-11
Thank you, Nir!

Hello Andriy,

I suppose that your actual question is different: how to move some workload from the startup to some other point in time? With Add-in Express forms, you can do this by creating an ADXOlFromsCollectionItem later, when it is really required. Say, when you receive the first Explorer.Activate event (or some other event) in your add-in. As to other parts of your add-in, you can start with the Ribbon UI set to look like if your add-in is disabled, custom panes hidden and all Outlook events detached. In the event of your choice, you modify the Ribbon controls to show them up, show the panes and attach to events; here, your add-in starts working.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 21 Aug, 2019 08:54:35 Top
Andriy




Posts: 34
Joined: 2018-03-13
Hello Andrei,

Thank you for the answer. I think moving further some logic is the most appropriate way.
Posted 21 Aug, 2019 09:44:25 Top
Andrei Smolin


Add-in Express team


Posts: 16670
Joined: 2006-05-11
Welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 21 Aug, 2019 10:04:04 Top