none
MailItem.GetInspector.WordEditor is NULL on Outlook 2013 AddIn all the time RRS feed

  • Question

  • I asked this question on stackoverflow, try my luck here as well since it is a little urgent.  Thanks in advance for your time. 

    We have a C# Outlook Add-in which allows end user to click one button in Ribbon to insert some contents on new email. We are using MailItem.GetInspector.WordEditor to do so. However the weird thing is that our program is not able to get the WordEditor all the time. So far, it is only on my machine.

    we would get exception like this

        System.Runtime.InteropServices.COMException (0x9CD04005): The operation failed.
           at Microsoft.Office.Interop.Outlook._Inspector.get_WordEditor()

    the last 4 digit is always 4005 while the first 4 could be changing. The first 4 should refer to the component where the error occurred.

    I installed the outlookspy on my machine and it could not get WordEditor as well.  
    OutlookSpy

    I did some search over internet and found out this link: system.Runtime.InteropServices.COMException (0xB5904005): The operation failed, so it suggests that we would get the WordEditor on Activate event to make sure WordEditor is fully initialized, however on new email, it should already be activated per our understanding unless we are missing something here. Plus I have run OUtlookSpy multiple times on a new email and each time WordEditor is null there. So it seems that it should not be initialization issue.

    Could someone shed some lights on what we should investigate here?


    • Edited by windfly2020 Monday, February 29, 2016 5:10 PM
    Monday, February 29, 2016 5:09 PM

All replies

  • Hi Pingzhong,

    Please add a button to the ribbon (custom ribbon) of new mail, then check WordEditor property in the click event.

    If the value still null, it seems that the issue is related to your outlook, what’s the detail version of your outlook, you may try update to the latest version and try again.

    Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, March 1, 2016 7:01 AM
    Moderator
  • Thanks Starain.

    >>Please add a button to the ribbon (custom ribbon) of new mail, then check WordEditor property in the click event.

    I thought that OutlookSpy button should be already serving the same purpose here. Please let me know if I am missing sth. We could do some testing here as well.

    >>If the value still null, it seems that the issue is related to your outlook, what’s the detail version of your outlook, you may try update to the latest version and try again.

    Here is what I have: Microsoft word 2013 ( 15.0.4797.1000) MSO (15.0.4787.1002) 32-bit Part of Microsoft Office Professional Plus 2013. Our Outlook AddIn is also 32 bit and my machine is 64 bit

    I uninstalled and reinstalled my Office 2013 yesterday and it doesn't help. That's the version we have at our corporate machine right now unless you have some suggestions what service pack which I could update to.

    Regards,

    Pingzhong

    Tuesday, March 1, 2016 2:11 PM
  • Hi Pingzhong,

    We don’t know how/when it get the value. So we’d better make a test by ourselves. Please add a simple ribbon with a button, the check the result.

    On the other hand, could you get mail body directly?

    Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, March 2, 2016 6:13 AM
    Moderator
  • Hi Pingzhong,

    Do you get result now?

    Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, March 7, 2016 1:50 AM
    Moderator