Hi,
i have an issue in creating a table. This should be the layout for my table:
table.png (4,7 KB)
But this is the result:
broken_table.png (6,0 KB)
I only add the number of cells that are necessary per row. Nothing special…
Dim doc As New Aspose.Pdf.Document()
doc.PageInfo.IsLandscape = True
Dim p As Page = doc.Pages.Add()
Dim table As New Table()
table.ColumnAdjustment = ColumnAdjustment.Customized
table.ColumnWidths = "68 125 160 27 75 75 45 215"
table.DefaultCellBorder = New BorderInfo(BorderSide.All, 0.75, Color.Red)
Dim row As Row = table.Rows.Add()
Dim c As Cell = row.Cells.Add("1/1")
c.RowSpan = 3
row.Cells.Add("1/2")
c = row.Cells.Add("1/3")
c.RowSpan = 3
c = row.Cells.Add("1/4")
c.ColSpan = 5
row = table.Rows.Add()
c = row.Cells.Add("2/1")
c.RowSpan = 2
row.Cells.Add("2/2")
row.Cells.Add("2/3")
row.Cells.Add("2/4")
row.Cells.Add("2/5")
c = row.Cells.Add("2/6")
c.RowSpan = 2
row = table.Rows.Add()
c = row.Cells.Add("3/1")
c.ColSpan = 4
p.Paragraphs.Add(table)
Does anyone has an idea whats wrong in my code or is it a bug?
Kind regards,
Maik