Posted 9 February 2020, 9:09 pm EST
I am trying to add a table at the location of a complexfield using the following code.
tbl1 = ComplexField1.GetRange().Tables.Insert(location:=InsertLocation.After)
The error that I get is:
GrapeCity.Documents.Word.InvalidParentContentException: ‘Cannot insert content of type ‘Table’ into parent content of type ‘Paragraph’ because the content to insert can be a child only for the folowing content types: Body, Cell, ControlContent.’