This is the code I use to generate the footer:
builder.MoveToHeaderFooter(HeaderFooterType.FooterPrimary);
builder.StartTable();
builder.InsertCell();
builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(100 / 3);
builder.ParagraphFormat.Alignment = ParagraphAlignment.Left;
if (section.footer.left != null && section.footer.left.Count > 0)
addBlocks(builder, section.footer.left, blockFactory, report_data);
builder.InsertCell();
builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(100 * 1 / 3);
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
if (section.footer.center != null && section.footer.center.Count > 0)
addBlocks(builder, section.footer.center, blockFactory, report_data);
builder.InsertCell();
builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(100 * 1 / 3);
builder.ParagraphFormat.Alignment = ParagraphAlignment.Right;
if (section.footer.right != null && section.footer.right.Count > 0)
addBlocks(builder, section.footer.right, blockFactory, report_data);
builder.EndRow();
var table = builder.EndTable();
table.ClearBorders();
It’s supposed to be a 3-column table with same-width columns. What I get is this:
one footer looks good:
image.png (2.9 KB)
and another is distorted:
image.png (6.4 KB)