interop.word RRS feed

  • Question

  • Sir,

    I am using Interop.word API to create document programmatically in C#. but I am Stuck at point where I am trying to add New Row in Table and want to access the newly generated row reference. my code is 

    Microsoft.Office.Interop.Word.Table tableCopy = Doc.Tables.Add(pText.Range, 1, 1, ref missing, ref missing); 
    Microsoft.Office.Interop.Word.Row  row= tableCopy.Rows.Add(ref missing);

    this code is executing fine but row is always null instead of new row reference in it. (as i am expecting)

    Please guide me if I am doing wrong THANKS...

    Friday, October 9, 2020 1:21 PM