Dear Sir/Madam,
I write a C# program, to populate data into a table in a word template (see the Word file WordTemplate.docx in the package zip file Post_05Jun21_Table_Split_Over_Two_Pages.zip under the OneDrive hyperlink https://onedrive.live.com/?id=8FFA4A1C66CFCED9%211145&cid=8FFA4A1C66CFCED9)
However, the table would all the way split over to two pages in the output Word document (see the output Word file WordOutputSplitToMultiPages.docx and the screenshot file Table_split_two_pages.jpg in the uploaded package zip file Post_05Jun21_Table_Split_Over_Two_Pages.zip from the above-mentioned OneDrive folder).
I have googled many solutions, but all of them cannot work. Some of the sample solutions are shown below:
https://word.tips.net/T001827_How_to_Stop_a_Table_Row_from_Splitting_Over_Two_Pages.html
https://techcommunity.microsoft.com/t5/word/word-table-splitting-across-pages/m-p/1362024
https://fiveminutelessons.com/learn-microsoft-word/stop-table-rows-microsoft-word-splitting-across-pages
https://www.extendoffice.com/documents/word/4543-word-keep-table-rows-on-same-page.html
https://www.myofficetricks.com/how-to-prevent-tables-from-breaking-across-pages/
Can anybody provide a solution to enhance the WordTemplate.docx file to prevent the table from splitting over two pages?
Many thanks.

