I am probably doing something completely wrong as I can't think that this should be that difficult!
Here's my problem (using Migradoc and pdfsharp):
I am creating a table and this tables must have borders (not just external but 'gridlines' as well)
The issue that some of the text in the cell is larger than the cell width and it wraps - and that's fine.
Problem is that the borders (despite if I use borders for the whole table or just for each row or each column, DO NOT detect this so I am ending with tables like this- when using:
Code:
tabBlds.Format.Borders.Width = 0.5;
Attachment:
tab1.png [ 19.41 KiB | Viewed 10945 times ]
or this when using:
Code:
Column column = tabBlds.AddColumn("4.5cm");
column.Format.Borders.Right.Width = 1.0;
column = tabBlds.AddColumn("2.5cm");
column.Format.Borders.Right.Width = 1.0;
column = tabBlds.AddColumn("2.5cm");
column.Format.Borders.Right.Width = 1.0;
column = tabBlds.AddColumn("2.5cm");
column.Format.Borders.Right.Width = 1.0;
column = tabBlds.AddColumn("4cm");
column.Format.Borders.Right.Width = 1.0;
column = tabBlds.AddColumn("3cm");
column.Format.Borders.Right.Width = 0;
Attachment:
tab2.png [ 18.06 KiB | Viewed 10945 times ]
I have event tried to add some 'invisible' paragraphs (just text in white) so all cells have the same number of lines and that sort of works for the header row but not for the rest as I am reading data from a database for this and not sure how long the text will.
Surely there must be an easier way??
Many thanks in advance,
Pano