Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am printing my html string in to pdf using iTextSharp. I have nested table hierarchy. I need the Inner table should be break if its not fit in the current page and Start printing on new page.

I have written as below:
C#
KeepTogether = true;
SplitLate = false;
LockedWidth = true;

For all the tables that is for parent as well as all the child tables.

But in my case the Inner table is not breaking.

I am adding main parent table in document.add(parentTable).

I have checked that If I separate the child table from parent table and add in document directly, its breaking the page whenever require.

But for nested table its not breaking .

Can you please help me ?

Thanks

What I have tried:

KeepTogether = true;
SplitLate = false;
LockedWidth = true;

For all tables, both parent and child tables
Posted
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900