none
System.Runtime.InteropServices.COMException(0x800A1098) RRS feed

  • Question

  • I created a Word Add-In. The following command in the debug mode is correct. But I save a word document. Turn it on again when I get an Exception(System.Runtime.InteropServices.COMException(0x800A1098), Because there is no open file, so cannot use this command. In Microsoft.Office.Interop.Word.ApplicationClass.get_ActiveDocument ()).

    Command:

    Word.Document doc = this.Application.ActiveDocument;

    Office.DocumentProperties properties = (Office.DocumentProperties)doc.CustomDocumentProperties;



    Sunday, March 18, 2012 9:51 AM

All replies

  • Hi,

    Thank you for posting.

    I can't reproduce the problem on my side.

    Can you show me the detailed the reproducible steps about the problem?

    From the exception, it seems that your file is not opened, can you make sure you opened the document with the Add-In?

    What is the version of your Word application and the Add-In?

    Best Regards,


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, March 20, 2012 7:30 AM