How can I get iTextSharp to repeat the headers of a PdfPTable on each page of the generated PDF?
Right click and choose “Table Properties.” In the Table Properties window, click the “Row” tab. Check the box that labeled “Repeat as header row at the top of each page.”
You just need to set the PdfPTable.HeaderRows
property to the number of rows in your PdfPTable
's header like this:
table.HeaderRows = 1;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With