[Outlook] Disappearing tabs

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

[Outlook] Disappearing tabs
Disappearing tabs in Outlook, only Developer tab remains 
Bart Vanhommerig




Posts: 14
Joined: 2008-11-28
We created an add-in for Outlook, which helps us to archive email to our CRM.

A couple of weeks ago, we made it compatible with office 2007 and now a couple of users are complaining that sometimes almost all tabs disappear when they open an e-mail and only the Developer tab will remain!

It only happens sometimes, and we can't seem to reproduce the error. What could it be???
Posted 28 Nov, 2008 06:51:54 Top
Eugene Astafiev


Guest


Hello Bart,

What version and build number of Add-in Express do you use?

Please try enabling the following option in the Ribbon UI settings: Show add-in user interface errors.
Posted 28 Nov, 2008 07:00:56 Top
skabaas




Posts: 14
Joined: 2008-11-28
We are using Add-in Express version 2007.3.8.1891.
Posted 28 Nov, 2008 07:37:50 Top
Eugene Astafiev


Guest


Bart,

Please try enabling the following option in the Ribbon UI settings: Show add-in user interface errors.


Did you enable this option? Please read more about it http://msdn.microsoft.com/en-us/library/bb608619.aspx. Do you get any Ribbon UI errors?

BTW The latest build of the 2007 generation is 2007.3.8.1892.
Posted 28 Nov, 2008 07:51:37 Top
skabaas




Posts: 14
Joined: 2008-11-28
We enabled the "show add-in user interface error"-option. It still happens and we didn't get any Ribbon UI errors. Hèèèèèèèèèèlp!
Posted 02 Dec, 2008 06:51:17 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Bart,

Can you please send me your AddinModule.cs (or AddinModule.vb) file to the support e-mail address (see readme.txt)?


Andrei Smolin
Add-in Express Team Leader
Posted 02 Dec, 2008 12:36:42 Top
skabaas




Posts: 14
Joined: 2008-11-28
Hello Andrei,

I've send you the AddinModule.cs file. Looking forward to hearing from you!

Greetings,

Bart
Posted 10 Dec, 2008 07:38:49 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Bart,

Your AddinModule.cs doesn't look strange in any way. I believe you ddin't edit the code in InitializeComponent, eh?

Are you sure that it is your add-in who hides Ribbon tabs? I suggest disabling other add-ins registered on affected systems. The only way to hide built-in Ribbon tabs is to use the StartFromScratch property in your add-in module.

One point, though. It looks like you use Marshal.ReleaseComObject inconsistently. This may cause problems this day or other. You may want to read http://www.add-in-express.com/creating-addins-blog/2008/10/30/releasing-office-objects-net/

For instance, in btnToggleArchive_Click, you release currentInspector but I don't see how you release outlookMailItem. In GetSelectedItemForExplorer, I suppose that you code can break if called when the current folder is a top-level one, say Personal Folders.


Andrei Smolin
Add-in Express Team Leader
Posted 10 Dec, 2008 12:11:05 Top
skabaas




Posts: 14
Joined: 2008-11-28
Hello Andrei,

I did what you suggested. I checked for COM-objects that needed releasing and I've corrected the problem. Though, the problem stays. Users are still complaining about disappearing tabs now and then. The cause is still a mystery: no exception is shown, no error messages are written in our logs.

Since we are using an "older" version of Add-in Express (2007), could it be possible that we receive a trial-version of Add-in Express 2008? Maybe this solves the problem? IF this solves our problem, we are willing to buy the newer version.

Greetings,

Bart
Posted 13 Jan, 2009 05:53:11 Top
Eugene Astafiev


Guest


Hello Bart,

Please try installing the latest build of Add-in Express 2007 - 3.8.1892. Don't forget to replace the adxloder.dll in the Loader folder of your project with a new one.
Posted 13 Jan, 2009 06:29:02 Top