none
How to refresh the mailItem.body screen element? RRS feed

  • Question

  • Hi All,

    So here's another Outlook/Word interaction question.  Outlook 2013 uses Word as its editor.  So when I update the "body" of the email message within my C# VSTO Addin by modifying the contents of a Word.Selection, how do I tell Outlook to refresh the mailItem.body contents to reflect this change.  It does happen now, but there is quite a delay and I want to do it when the user clicks a button in my Custom Task Pane.

    Thanks, WordRake.

    Friday, June 21, 2013 4:24 AM

Answers

  • Thanks DamianD,

    But actually, once I started updating via Range.delete or range.insert, the refresh happens immediately (as compared to overwriting Selection.Text.

    WordRake

    • Marked as answer by WordRake Tuesday, June 25, 2013 4:24 AM
    Tuesday, June 25, 2013 4:24 AM

All replies

  • try mailitem.save
    Friday, June 21, 2013 7:36 AM
  • Thanks DamianD,

    But actually, once I started updating via Range.delete or range.insert, the refresh happens immediately (as compared to overwriting Selection.Text.

    WordRake

    • Marked as answer by WordRake Tuesday, June 25, 2013 4:24 AM
    Tuesday, June 25, 2013 4:24 AM