I need to insert many tables into one bookmark in the document.
If I do it like below, then I thought it would insert one table per loop, but it inserts all cells into one table.
Someone, that knows what I’m doing wrong, or is it not possible to do what I need?
Dim itemsRange As ContentRange = document.Bookmarks("Table").GetContent(False)
While SQLdr.Read()
Dim table As New Table(document)
Dim row1 As New TableRow(document)
table.Rows.Add(row1)
Dim cell As New TableCell(document)
row1.Cells.Add(cell)
Dim paragraph As New Paragraph(document, $"" & value & "")
cell.Blocks.Add(paragraph)
itemsRange.End.InsertRange(table.Content)
End While