Handling tables that are wider than one page

Hi Team,

we needs to handle tables that are wider than one page. Let us say 20 columns in table.
If the table is wider than one page the remainder table has to display in the subsequent pages of the table where the leftmost column has to repeat in each page(including its heading and any borders in this column).

Example Table has been attached here: Wide Table.zip (15.8 KB)

As per our current code first 15 header displaying and rest of the headers missing as attached here. wider-table-headers-missing.zip (10.2 KB)

Please assist me to achieving this and let me know if any other details required.

Update: Could you please reply to this ASAP as it is urgent requirement. Thanks for helping.

@srinivasc

Thanks for your inquiry. Please note that Aspose.Words mimics the behavior of MS Word. By Microsoft Word design, rows in a table in a Microsoft Word document are completely independent. It means each row can have any number of cells of any width. So there is no column concept in MS Word’s table.

In your case, We suggest you following solution.

  1. Clone the table using Node.Clone method.
  2. Insert the cloned table after your source table using CompositeNode.InsertAfter method.
  3. Remove the undesired columns from both tables using the code shared in following article.

Please read the following article.
Working with Columns