updating HTMLBody in adxOutlookAppEvents1_ExplorerInlineResponse is not refreshed

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

updating HTMLBody in adxOutlookAppEvents1_ExplorerInlineResponse is not refreshed
 
franck DAMMANN




Posts: 22
Joined: 2021-01-26
Dear all,

In my plugin I update the HTMLBody (adding extra text) in different events (NewItem, InlineResponse) but when I add my extra text into adxOutlookAppEvents1_ExplorerInlineResponse the extra text is not displayed but if I pop out the email (isolate button) I can see my extra text...
It seems that HTMLBody is not refreshed...

here is my code snippet:

 private void adxOutlookAppEvents1_ExplorerInlineResponse(object sender, object itemObject)
        {
            
            if (itemObject is Outlook._MailItem)
            {
                outlookItemEvents.ConnectTo(itemObject, true);
                Outlook._MailItem mailItem = (Outlook._MailItem)itemObject;

                if (!mailItem.Sent)
                {
                   mailItem.HTMLBody += "Just for test";
                   mailItem.Save();
                }
            }          
       }


May be I'm missing something ? Do I need to refresh mailItem content ?

Thanks,
Franck.
Posted 14 Apr, 2021 04:58:45 Top
Andrei Smolin


Add-in Express team


Posts: 18007
Joined: 2006-05-11
Hello Franck,

I would try to use Explorer.ActiveInlineResponseWordEditor; see https://docs.microsoft.com/en-us/office/vba/api/outlook.explorer.activeinlineresponsewordeditor.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 14 Apr, 2021 05:50:20 Top