Changing minimum version

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

Changing minimum version
 
Adam B




Posts: 49
Joined: 2013-12-20
Is it possible to change the minimum supported version for my Add-in? I currently set it to work with Outlook 2007 and above. I'd like to set this to 2010.

Thanks.
Adam
Posted 14 Nov, 2014 13:14:23 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Hello Adam,

You need to copy required interops from {Add-in Express}\Redistributables\Interop Assemblies\{version} over the corresponding files in folder Interops of your add-in project.

Please note that whatever interop assemblies your add-in uses, it will be loaded by *all* Office versions. If your add-in isn't prepared to this, it may show error messages and crash the host application. To prevent this, see How to load your Office COM add-in on condition.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 17 Nov, 2014 02:52:25 Top
Adam B




Posts: 49
Joined: 2013-12-20
Btw, when creating the Add-in, I specified Outlook 2007+, am I correct in assuming that this means that it won't load in earlier versions. (Not that I overly care if someone attempts to load it on an unsupported version.)
Posted 17 Nov, 2014 12:30:26 Top
Adam B




Posts: 49
Joined: 2013-12-20
Also, am I correct in assuming that if I have selected 2007+, that it would have all the corresponding interops needed for 2007, 2010 and 2013
Posted 17 Nov, 2014 12:31:21 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Adam,

When you select 2007 (or any other version) the project wizard provides interops for the selected version only. An interop sort of maps a method/property name to an offset. This is used early binding. To access a property(method) defined in a later Office version you need a) to check that ADXAddinModule.HostMajorVersion is greater or equal to the Office version providing that property and b) invoke that property using late binding. Please find more details in Supporting several Office versions in an add-in. Interop assemblies and late binding.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Nov, 2014 08:53:53 Top