DocX
DocX copied to clipboard
Insert list in a table
Hi! How do I insert list in a table?
I tried to do:
Novacode.Table testTable = document.AddTable(1, 1);
testTable.Rows[0].Cells[0].Paragraph.First().Append("Testing");
//insert list here
var list = document.AddList(listType: Novacode.ListItemType.Bulleted);
document.AddListItem(list, "testing");
testTable.Rows[0].Cells[0].InsertList(list);
testTable.Rows[0].Cells[0].Paragraph.First().Append("Testing 22");
But the list always appear at the bottom of the document instead of within Testing and Testing 22, why is this?