none
VSTO Word - Alternative for ActiveDocument RRS feed

  • Question

  • Hi ,

    I am using VSTO for word. For some requirements, like insert content controls , i am using this.Addin.ActiveDocument. Is there any alternative to this? I need to identify document using some id or any similar items.

    Regards,

    Raj

    Monday, August 22, 2016 7:45 AM

Answers

  • >> For some requirements, like insert content controls , I am using this.Addin.ActiveDocument. Is there any alternative to this? I need to identify document using some id or any similar items.

    You could also use  Documents(index) E.g.  this.Application.Documents[1] to identify the specific document. For more information, please visit Documents interface.

    Tuesday, August 23, 2016 7:52 AM
    Moderator