Jeff Noble
Posts: 120
Joined: 2011-09-07
|
Hi,
We are upgrading code to support Outlook 2016. I am testing on a Win10 box. All of the code I am researching works on previous versions of Outlook. I have upgraded the Outlook dll's to the 2016 versions and once I get this working, I will back them down to the minimum viable version.
The code that is not working is trying to access a Form Region. The code is
var shareForm = adxOlFormsCollectionExplorerShare.GetForm(explorer);
the shareForm variable is coming back null only in Outlook 2016.
Here is how the Item is built in the designer code:
private AddinExpress.OL.ADXOlFormsCollectionItem adxOlFormsCollectionExplorerShare;
this.adxOlFormsCollectionExplorerShare = new AddinExpress.OL.ADXOlFormsCollectionItem(this.components);
this.adxOlFormsManager.Items.Add(this.adxOlFormsCollectionExplorerShare);
this.adxOlFormsCollectionExplorerShare.Cached = AddinExpress.OL.ADXOlCachingStrategy.OneInstanceForAllFolders;
this.adxOlFormsCollectionExplorerShare.ExplorerItemTypes = AddinExpress.OL.ADXOlExplorerItemTypes.olMailItem;
this.adxOlFormsCollectionExplorerShare.ExplorerLayout = AddinExpress.OL.ADXOlExplorerLayout.TopReadingPane;
this.adxOlFormsCollectionExplorerShare.FormClassName = "Malone.Forms.MessageHeaderFormRegion";
this.adxOlFormsCollectionExplorerShare.IsHiddenStateAllowed = false;
this.adxOlFormsCollectionExplorerShare.IsMinimizedStateAllowed = false;
this.adxOlFormsCollectionExplorerShare.RegionBorder = AddinExpress.OL.ADXRegionBorderStyle.None;
this.adxOlFormsCollectionExplorerShare.Splitter = AddinExpress.OL.ADXOlSplitterBehavior.None;
this.adxOlFormsCollectionExplorerShare.UseOfficeThemeForBackground = true;
Can't seem to figure out why it's empty. Is there another way to access the FormRegion? |
|
Andrei Smolin
Add-in Express team
Posts: 18816
Joined: 2006-05-11
|
Hello Jeff,
Does this occur with Add-in Express 8 Beta [1 or 2]? Add-in Express 7.X doesn't support Office 2016.
Andrei Smolin
Add-in Express Team Leader |
|
Jeff Noble
Posts: 120
Joined: 2011-09-07
|
Not sure, I was hoping you could tell me that. While we definitely DO want to upgrade, last time we tried the designers would not load and we didn't have time to diagnose why.
One thing I have learned is that the FormInstanceCount on the adxOlFormsCollectionExplorerShare.Collection are all 0 in 2016.
Will the v8 install side by side, or do I need to uninstall 7 first?
-Jeff |
|
Andrei Smolin
Add-in Express team
Posts: 18816
Joined: 2006-05-11
|
Jeff Noble writes:
Not sure, I was hoping you could tell me that.
Check the version of every Add-in Express assembly in the References section of your project.
Jeff Noble writes:
Will the v8 install side by side, or do I need to uninstall 7 first?
Uninstall 7 first.
Andrei Smolin
Add-in Express Team Leader |
|