Outlook Example in C#

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

Outlook Example in C#
 
Ronni Marker


Guest


Hi i am trying out the features at the moment and is currently having a problem pasting content to a mail body when i click on a button from the adxOiInspectorCommandbar.

do you have any examples on how to access the body from the commandbar button in C#?

Cheers,
Ronni
Posted 05 Jul, 2007 08:21:40 Top
Ronni Marker


Guest


Ok came part of the way.

Outlook.MailItem mailObject = null;
Outlook.Inspector inspector = OutlookApp.ActiveInspector();
object item = inspector.CurrentItem;
mailObject = item as Outlook.MailItem;

mailObject.Body.Insert(0, "test");

Now just wonder if there is an "easy" way to determine where in the text the cursor is located so i can paste text in to where is it located without deleting the existing content.

Cheers,
Posted 05 Jul, 2007 10:35:10 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Ronni.

No, there is no way to determine this.



P.S. We always do our best to answer your forum requests as soon as possible. However, we apply the rule "first in first out" with Premium Support Service subscribers taking priority. Please understand it may take us some time to do research on the issue. Please be assured we will let you know as soon as the best possible solution is found.
Posted 05 Jul, 2007 15:51:57 Top