M
Michael Hoehne
I have a very strange situation here and hope that someone can confirm this behaviour or provide a solution.
My addin works fine as long as I start Outlook in the usual way, meaning clicking the Outlook Icon and launching the full application. In this scenario I can modify the ActiveExplorer's command bar (menu items, toolbars, etc.)
Now, when I first open a .msg file from the filesystem, Outlook starts and the addin is loaded. However at this time there's no active explorer, what is expected, because the only visible thing on the screen is an inspector object.
To create the menu entries (and of course the associated event handlers), I hook into the NewExplorer event of the Application.Explorers collection and do receive the event when Outlook is launched. The newly created Explorer object is passed to the event routine and I expected that I can simply add my menus to its CommandBars collection. BUT: any call to explorer.CommandBars throws an error with some useless text (error executing the operation).
Does anyone have a solution for this or can anyone confirm this to be a bug in Outlook?
Thanks
Michael
My addin works fine as long as I start Outlook in the usual way, meaning clicking the Outlook Icon and launching the full application. In this scenario I can modify the ActiveExplorer's command bar (menu items, toolbars, etc.)
Now, when I first open a .msg file from the filesystem, Outlook starts and the addin is loaded. However at this time there's no active explorer, what is expected, because the only visible thing on the screen is an inspector object.
To create the menu entries (and of course the associated event handlers), I hook into the NewExplorer event of the Application.Explorers collection and do receive the event when Outlook is launched. The newly created Explorer object is passed to the event routine and I expected that I can simply add my menus to its CommandBars collection. BUT: any call to explorer.CommandBars throws an error with some useless text (error executing the operation).
Does anyone have a solution for this or can anyone confirm this to be a bug in Outlook?
Thanks
Michael