Free Support Forum - aspose.com

Cell width too small: 0 when ColumnsSpan used

Hi,
I am trying to set the columnsSpan on the top row of a pdf table.
I am using:

tab1.ColumnWidths = "50 50 50 50"
For intRows = 1 To 3
Dim row1 As Aspose.Pdf.Row = tab1.Rows.Add()
For intCols = 1 To 4
row1.Cells.Add(“Test”)
Next
Next


tab1.Rows(0).Cells(0).ColumnsSpan = 4

on Save, I get this:

Cell width too small: 0

If I comment out the line with ColumnsSpan in it, the code works fine, but I need to get the colunsSpan to work.

Hi,

Thank you for considering Aspose.

You have defined 4 columns. If the first cell in the first row spans 4 columns, the row should contains only one cell but not 4 cells.
I should make Aspose.Pdf ignore these problem but not throw meaningless exception in the future version.