Using the wrapper in addin

Feb 16, 2009 at 2:57 PM
good work. Thanks.

How should I use this in an Outlook addin? Upon Outlook start, it passes a reference to the Outlook running instance to the addin as Object type. So, I can not use Application.CreateInstance, but have to reuse (wrap) this object.

Feb 16, 2009 at 3:02 PM
You can use a constructor of "TcKs.Office.Outlook.Application" class.

In C#:
TcKs.Office.Outlook.Application app = new TcKs.Office.Outlook.Application( comObjectOfOutlookApplication );

Dim app As New TcKs.Office.Outlook.Application( comObjectOfOutlookApplication )
Feb 16, 2009 at 3:04 PM
Wow, that was, thanks. :)
Feb 16, 2009 at 3:09 PM
You are welcome :)