We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Nested Table issue using ASPOSE Word

Attached a code sample that we use to generate PDF. Also attached a sample PDF file with comments about the requirements.

The First Table is always static having 2 rows.

The Second Table can have N number of rows and also text can be long enough to wrap.

The Third Table can have N number of rows and also text can be long enough to wrap.

1) User should see First Table (2 rows) + Second Table header and at least one row in same page. If space is not available then insert page break so that they appear in next page all together

2) The Second and Third table header should be repeated in each page if table spans multiple pages.

3) How to calculate available space while writing table rows ?

Hi Douglas,

Thanks for your inquiry. I suggest you please read following documentation links for your kind reference.

Please note that Aspose.Words mimics the same behavior as MS Word does. If you create the same document (with nested tables) and convert it to Pdf using MS Word, you will get the same output.

Please manually create your expected Word document using Microsoft Word and attach it here for our reference. We will investigate as to how you want your final Word output be generated like. We will then provide you more information on this along with code.

Thanks. As per your response attached the sample word document with requirement comments. We need following conditions :

1. First Table (2 rows) cannot be placed in a page without having a header + at least one row of Second Table.

2. Second table header cannot be placed alone in a page without having at least one row

3. Second or Third rows should have a header in each page if there is a page break

Hi, the attached template is empty, can you please reattach?

Hi Douglas,

Thanks for your inquiry. I have only removed the empty table from your template document. Please check the attachment.