Pdfptable cuts into page while using three tables and WriteSelectedRows

312 views Asked by At

While using PdfPTable by iTextsharp, we are facing an issue where the scenario is that there are three tables added one after the other in a document such as:

tblEstimate.WriteSelectedRows(0, -1, 15, 675, cb); // cb : PdfContentByte
tblEstimate0.WriteSelectedRows(0, -1, 15, 625, cb); // cb : PdfContentByte
tblEstimate1.WriteSelectedRows(0, -1, 15, 800, cb); // cb : PdfContentByte

The issues is that while the two of the three methods above, prints the table well, but the third one having multiple rows with lots of data get stretched up and the elongated table gets cut off the page rather than continuing to the next page. See the screenshot.

enter image description here

I want the table to be split in another page rather then cut off the current page. We have tried a lot yet with no luck, any prompt help in this matter will be highly useful. Regards.

0

There are 0 answers