I have two tables on my PDF. The first one sometimes spans more than half the page, which forces the second to jump to a new page.
Here are my definitions:
'Table Declaration
Dim sglTblHdWidths(2) As Single
sglTblHdWidths(0) = 200
sglTblHdWidths(1) = 200
sglTblHdWidths(2) = 102
'Table ONE:
Dim ToCCSub As New PdfPTable(sglTblHdWidths)
ToCCSub.TotalWidth = 502.0F
ToCCSub.LockedWidth = True
'Table TWO:
Dim tab As New PdfPTable(1)
tab.TotalWidth = 502.0F
tab.LockedWidth = True
And they're both added to the document afterward. How can prevent this from happening?