In this code, I have problem:
I have NodeCollection paragraph. I want add them to one cell with documentbuilder.
documentBuilder.StartTable();
Cell cell = new Cell(doc1);
NodeCollection nodeParagragh; //some paragraph
foreach (Paragraph paragraph in nodeParagragh)
{
cell.AppendChild(paragraph);
}
documentBuilder.InsertNode(cell);
documentBuilder.EndRow();
documentBuilder.EndTable();
I know, I can do that with cell.AppendChild and add cell to a table, but I just want to do it with Documentbuilder.
Please help me. Thank you!