Hello, Ken!
Yes, I know about the problem of NewInspector event. About 4 years ago, I
developed add-in for Outlook 2003 (actually now I'm trying to create the new
version of it, using VSTO 3.0 for Outlook 2007), and Sue Mosher from
outlookcode.com told me that there is such a problem, and adviced to check
inspector collection manually on timer. That worked out ok.
But that was developed without VSTO, just by implementing IDTExtensibility2
interface in Connect class in VS 2003 shared addin project template.
Now the thing is that Add-in starts AFTER I close the window of New Message.
So nor timer nor any user code could be used to customize message window, it
just runs after i close the window...
And another problem - about message window that stays on the screen after
send or close, I don't understood your advce?
I've allready posted a message he
http://social.msdn.microsoft.com/For...8-5196939f786f
but unfortunately got no replies...
"Ken Slovak - [MVP - Outlook]" wrote:
First of all I'm not sure how VSTO is handling what is called a headless
Outlook. That's an Outlook that has no UI. Are you getting the Startup()
event when Excel starts Outlook? If not you need to display a UI by using
the GetExplorer() method. If that doesn't work you will need to post to the
VSTO forum at the MSDN forums to see what the VSTO team says about that
problem.
In the second problem you are seeing Simple MAPI items opened by sending
mail from Excel and not using the Outlook object model to do that instead. A
Simple MAPI Inspector is opened modally. It also will not start a VSTO
addin. Simple MAPI Inspectors do not fire NewInspector() when they are
opened. They do get added to the Inspectors collection, but no event fires
to tell you that.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm