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 |
|
Andrei Smolin
Add-in Express team
Posts: 19096
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 http://www.add-in-express.com/creating-addins-blog/2012/01/20/load-office-addin-on-condition/.
Andrei Smolin
Add-in Express Team Leader |
|
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.) |
|
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 |
|
Andrei Smolin
Add-in Express team
Posts: 19096
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 http://www.add-in-express.com/creating-addins-blog/2010/03/16/interop-assemblies-late-binding/
Andrei Smolin
Add-in Express Team Leader |
|