I’m trying to add content from my database to a table I created with iTextSharp
but I get this error:
>infinite table loop : row content is larger than page
Here is my code:
foreach (string n in Data)
{
PdfPCell cella = new PdfPCell(new Phrase(n.id.ToString()));
table.AddCell(cella);
PdfPCell cellb = new PdfPCell(new Paragraph(n.Valeur));
table.AddCell(cellb);
PdfPCell cellc = new PdfPCell(new Phrase(n.Titre));
table.AddCell(cellc);
}
table.SpacingAfter = 40f;
document.Add(table);
Its the n.Valeur that causing the problem although its content is not that big, mainly a paragraph.
added this settings table and it solved it for me partially