Hi,
with help from Thomas I created now with MigraDoc and PDFSharp the image below.
The first line shows how this table should react if a long text has to placed into the last column.
To get this behaviour I added an additional row and a 'MergeDown = 1' for the last cell.
The second line shows the same behaviour although the text fits into one line.
I would like to have this additional line in these cases complety invisible.
I tried somthing like that:
Code:
FüllZeile = tbl.AddRow
FüllZeile.Height = 0
FüllZeile.HeightRule = RowHeightRule.Exactly
The result looks quite good, but in all cells whithout 'MergeDown=1' set I get a double-border.
I tried a lot of combinations to get rid of the thick line, without success.
The best result yet worked with 'FüllZeile.Height = -1' but then the tables outer border has an edge.
So here my question:
Is there a simple way to expand the last cell on demand without getting the borders double?
How do borders-settings on one object change the border-settings on another?
Code:
FüllZeile.Borders.Top.SetNull()
FüllZeile.Borders.Bottom.SetNull()
These two lines inserted bring some left or right borders of that line into visible range.
Thank you for helping me.