Explorer Subpanes in Outlook 2016

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

Explorer Subpanes in Outlook 2016
Getting Subpanes to Show in Outlook 2016 
Andrew Lockwood




Posts: 50
Joined: 2014-12-29
I have a plug-in that works fine in Outlook 2007, but in Outlook 2016, my custom forms (TadxOlForm) do not display.

I then tried running the sample program "Advanced Regions" and I get errors in the Explorers (and the advanced regions do not display), but the advanced regions do show correctly in Inspectors.

What do I need to do to get my plug-in working properly in Outlook 2016?

Thanks,


Andrew
Posted 25 Jun, 2017 17:51:27 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Andrew,

Could you please point me to the sample project that doesn't work for you? What Delphi version are you using?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 26 Jun, 2017 01:29:54 Top
Andrew Lockwood




Posts: 50
Joined: 2014-12-29
The LayoutsD7 sample project does not run. The subpanes show in the Inspectors, but not in the Explorers. But in my plug-in, they don't show in either!

The exception in the sample is EArgumentOutOfRange.

I am running Delphi XE3 on Windows 10.

I don't know if it is relevant - I have raised a support ticket on the fact that although I fully uninstalled v7 before upgrading to v8, I get the following error every time I run a plug-in - you will note it says ADX Version 7.8 ...


System Info:
============
Time: 26/06/2017 08:13:53
Package: Unknown
ADX Version:7.8.1223
ADX Extensions Version 7.0.1210
Define DOCKEXPLORERLAYOUTS
Define SupportAdjacentWindow
Outlook version: 16.0.0.8201

Log:
============
26/06/2017 08:14:34 12280 Show time: 26/06/2017 08:14:34
26/06/2017 08:14:05 12280 |-------------------------
26/06/2017 08:14:05 12280 |CoADTOutlookAddIn error (DoAddInInitialize): the add-in has fired an exception.
DoAddInInitialize: Outlook version is not defined. SetOutlookVersion.
Posted 26 Jun, 2017 02:36:48 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Andrew,

It looks like your project refers to a DCU of Add-in Express version 7.8. Does the issue occur if you create a new add-in project?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 26 Jun, 2017 06:57:31 Top
Andrew Lockwood




Posts: 50
Joined: 2014-12-29
I tracked down the offending DCUs, so I no longer get the error when the plug-in loads. But the LayoutsD7 example still does not work. The problem is just the same - the subpanes do not display in Explorers, instead I get an EArgumentOutOfRange exception.
Posted 26 Jun, 2017 11:13:14 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Andrew,

We've updated the source code of the sample; it was a minor update - two Ribbon tabs had the same value in their Id properties. The sample works for us. The project's DLL is available at http://temp.add-in-express.com/support/layoutsd7_bin.zip. Does it work for you?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 27 Jun, 2017 04:08:12 Top
Andrew Lockwood




Posts: 50
Joined: 2014-12-29
The updated DLL works fine thanks.

However, I now have another question. In your example, the advanced regions show up as coloured panes, whereas in my plug-in, they don't. I have tried setting the form colour to the same as the one in your example. I even tried taking the form from your example and including it in my plug-in. But whatever I do, the pane is still colourless (transparent?). How do I force it to show as a coloured pane?
Posted 27 Jun, 2017 19:10:41 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Andrew,

Set the UseOfficeThemeForBackground to false on the corresponding TadxOlFormsCollectionItem.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 28 Jun, 2017 03:11:47 Top
Andrew Lockwood




Posts: 50
Joined: 2014-12-29
Brilliant. Thanks!
Posted 29 Jun, 2017 05:16:29 Top
Andrei Smolin


Add-in Express team


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

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 Jun, 2017 06:20:45 Top