17

How can I get iTextSharp to repeat the headers of a PdfPTable on each page of the generated PDF?

Joel Anair
  • 13,832
  • 3
  • 31
  • 36
user147031
  • 183
  • 1
  • 2
  • 6

1 Answers1

36

You just need to set the PdfPTable.HeaderRows property to the number of rows in your PdfPTable's header like this:

table.HeaderRows = 1;
Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480
Jay Riggs
  • 53,046
  • 9
  • 139
  • 151