locked
ComAddIn.object always returns null RRS feed

  • Question

  • ComAddIn.object always returns null

    Word.Document doc = app.Documents.Add(ref template, ref optional, ref

    optional, ref Visible);

    // Connect the addin

    object addIn = "ACTWordAddInTest.Connect";

    Microsoft.Office.Core.COMAddIn comAddIn = app.COMAddIns.Item(ref addIn);

    comAddIn.Connect = true;

    ACTWordAddInTest.IWordTest test = comAddIn.Object as

    ACTWordAddInTest.IWordTest;


    The test object is always null

     

    • Moved by Feng Chen Friday, June 6, 2008 1:04 AM VSTO issue.
    Thursday, June 5, 2008 9:32 AM

Answers