stefan2342 wrote:
Is there anything wrong with my source code or is it a bug?
I'm afraid it is a bug.
To determine the border between row 1 and row 2, MigraDoc combines the settings of both rows. Problem is the MergeRight and the border for the first column is used for all columns.
I can suggest three lines of code as a workaround:
Code:
Row r1 = t.AddRow();
r1.Cells[0].MergeRight = 5;
r1.Cells[0].Borders.Width = 0;
Row r1A = t.AddRow();
r1A.Height = 0;
r1A.HeightRule = RowHeightRule.Exactly;
I add a new row with no height and no border.
IMHO your original code should work and I'll put this issue on the bug list.