ActiveExplorer return NULL on new Window user login and running Outlook first time

Status
Not open for further replies.

Basha Shaik

New Member
Outlook version
Outlook 2010 64 bit
Email Account
POP3
Hi,

I'm exactly facing the same issue where ActiveExplorer() is returning NULL.
(ActiveExplorer return NULL on new Window user login and running Outlook first time)

Details as below
------------------
i. using Outlook 2010.
ii. using a COM add-in extending IDTExtensibility2
iii. In the OnConnection() method, I'm calling ActiveExplorer().

Issue
----------
1. When Outlook is launched by double-clicking the icon, everything works fine. i.e ActiveExplorer() return a valid value. It doesn't return NULL. All is well here.

2.
But in some of the cases (when winword is opened, as as explained in this thread), Outlook gets launched with a command line argument '-Embedding' in which case, it would be running in the background without any 'User Interface'.
In this case, ActiveExplorer() returns NULL when OnConnection() is called.

Now, when Outlook is launched by double-clicking, new outlook process gets launched and exits where as the old outlook instance that has been running in background is brought to foreground, displaying the User Interface.

I tried to make a call to ActiveExplorer() on the saved object, CComQIPtr <Outlook::_Application> in GetCustomUI method of the interface IRibbonExtensibility

ActiveExplorer() returns NULL value, still.


For case(2), how can I get ActiveExplorer() to return a Non-Null value when Outlook comes to foreground so that I can register for the events folder change/view change/selection change.

Thanks.
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
S ActiveExplorer return NULL on new Window user login and running Outlook first time Outlook VBA and Custom Forms 19
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
H Select/Unselect items in ActiveExplorer by code? Outlook VBA and Custom Forms 2
R The return of weird graphical glitches in Outlook? Using Outlook 2
H Return Highest Level Email Folder Outlook VBA and Custom Forms 2
B return to inbox Using Outlook 5
icacream outlook 2007 - how do I stop spacing when I hit return ? Using Outlook 4
G Possible to create reports that return contacts based on account criteria? BCM (Business Contact Manager) 0
R Return Address Using Outlook 1
T Inserted indicies in my text of return or forwarded messages Using Outlook 1
L Microsoft Office 2003 Email: Return-path Using Outlook 2
I Mailbox Audit log don't return results. Exchange Server Administration 4
J Outlook 2003 personal folder downloading from Exchange 2003 Some email blank, some email ok, but when return to read again some are blank. Using Outlook 3
D Emails return to original folder after being moved. Using Outlook 1
S null sender Exchange Server Administration 1
S CAS install failed - "Value cannot be null. Parameter name: key" Exchange Server Administration 7
J NULL Outlook VBA and Custom Forms 6
D Application.ActiveInspector() is Null on Ribbon Load Outlook VBA and Custom Forms 1
P Inspector.WordEditor always returns null Outlook VBA and Custom Forms 3
Top