I use the last version of itextsharp.
I use the property HeaderRows=1 so that if there is a pagebreak, the Header rows will appear again in the next page.
Then we have the rows of the content with the border style without bottomline like this:
PdfPCell cell1 = null;
cell1 = new PdfPCell(new Phrase(string.Format("{0}", c1), fn));
cell1.Border = Rectangle.RIGHT_BORDER | Rectangle.LEFT_BORDER;
When there is a pagebreak, the line bottom of the table is not shown, which is not logical.
Even if the content rows have no bottom / top border, the PdfPTable itself should have borders (it does not have in the code in fact).
Any ideas? Thx.
I think I have been lucky, this was not easy to find.
I was looking for some event to localise the last row of the page and I found it.
You instance it like this:
The class is the following: