VSTO Outlook ItemSend with C# -
i'm trying add string in end of outlook email's body vsto
private void thisaddin_startup(object sender, system.eventargs e)     {         this.application.itemsend += new microsoft.office.interop.outlook.applicationevents_11_itemsendeventhandler(application_itemsend);     }      void application_itemsend(object item, ref bool cancel)     {         if (item outlook.mailitem)         {             outlook.mailitem mail = (outlook.mailitem)item;             mail.bodyformat = microsoft.office.interop.outlook.olbodyformat.olformathtml;             mail.body += "my sample text";             mail.save();         }     }   when run f5 code vstudio, the app isn't stopping in breakpoints , emails not contain added line
what can it?
note: i'm working vs2008 , outlook 2007
thanks in advance
sorry...
the problem i've close outlook , restarted f5.
if have same issue, know
Comments
Post a Comment