Hi,
I'm using the following method to build a table whose rows do not break across pages,
but the rows do break.
Any idea why?
Private Sub _buildTableByTableObj(ByVal doc As Document, ByVal rowNum As Integer)
Dim table As New Table(doc)
For i As Integer = 0 To rowNum - 1
Dim cell As New Cell(doc)
cell.CellFormat.Width = 6 * 72 '6"
cell.Tables.Add(_buildInnerTable(doc))
Dim row As New Row(doc)
row.RowFormat.Height = 0.4 * 72 '0.4"
row.RowFormat.AllowBreakAcrossPages = False
row.RowFormat.LeftPadding = 0.08 * 72
row.Cells.Add(cell)
table.Rows.Add(row)
Next
_setMainTableStyle(table)
Dim section As Section = doc.ChildNodes(0)
section.Body.InsertAfter(table, section.Body.Paragraphs(0))
End Sub
Thanks