1

Pagebreak To Table

I am trying to generate a bill in PDF format.

In the given image as product are more that end table has gone to next page.

In that table there are 3 cells, one for left text with small font, other cell with middle text and next cell with that single line.

How can I prevent the table from breaking the page? Is there any property to get table to next page if a page break is going to occur?

I tried table.SplitLate=false, but it didn't work. Any other ideas?

Michael Petrotta
  • 59,888
  • 27
  • 145
  • 179
Nitin Varpe
  • 10,450
  • 6
  • 36
  • 60

1 Answers1

1

Have you tried PdfPTable.setKeepTogether(boolean) ?

Alexis Pigeon
  • 7,423
  • 11
  • 39
  • 44
  • Yes I have used table.KeepTogether=true that worked thanks for ur response – Nitin Varpe Jul 27 '13 at 12:22
  • Hi , can you please look at my this question. I am stuck with it. Can you please help me. link :- http://stackoverflow.com/questions/35909753/need-to-give-page-break-in-inner-pdfptable-of-itextsharp Thanks – Herin Mar 14 '16 at 12:32