Word.WordColorIndex doesn't work RRS feed

  • Question

  • Hi,

    We are developing a COM Add-In from C# in Word applications. We have been using different Word APIs and component and almost all work good apart from the below one:

    We are highlighting/selecting terms inside Word document via Word.WordColorIndex and at one of the client's site, it's throwing the below error:

    "Unhandled exception has occurred in a component in your application.
    Error HRRESULT E_FAIL has been returned from a call to a COM component."

    Please let me know what could be the missing file/DLL in that machine?

    Any pointer/reference will be helpful.

    As mentioned, this doesn't throw any error in most of our development/testing machines but creates problems only at one client's machines.



    Thanks, Atit Shah

    Monday, February 25, 2013 6:41 PM

All replies

  • Hi Atit,

    Thank you for posting in the MSDN Forum.

    It's hard to infer just from the Words described by you.

    You need to show us the detailed information on that machine which throws exception. You can compare the environment of the machine which throws exception with those functioning well.

    But before take the above actions, I suggest you repair your installation.

    Hope it helps.

    Best regards,

    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, February 27, 2013 11:58 AM