问题
How can I get iTextSharp to repeat the headers of a PdfPTable on each page of the generated PDF?
回答1:
You just need to set the PdfPTable.HeaderRows
property to the number of rows in your PdfPTable
's header like this:
table.HeaderRows = 1;
来源:https://stackoverflow.com/questions/2062983/how-can-i-repeat-the-headers-of-an-itextsharp-pdfptable-on-each-page