none
how to add multiple check boxes in a table cell RRS feed

  • Question

  • Hi, 

    i'm trying to add multiple content control checkboxes inside a table cell, and i keep getting the error "some content controls can not be inserted in this location"

                                                  
    while (true)
    {
      if (j == 4) break;
      newTable.Cell(i + 1, 2).Range.Select(); 
      Globals.ThisAddIn.Application.Selection.ContentControls.Add(Word.WdContentControlType.wdContentControlCheckBox);
      string s = xlDDLRange.Cells[j + 1, i + 1].Value2.ToString();
      newTable.Cell(i + 1, 2).Range.InsertAfter(s);
      j++;
    }


    i also want to add the text of the string "s" to be the text of the checkbox

    Monday, September 9, 2019 2:55 PM