DBDilli Babu Nandha Gopal Syncfusion Team March 25, 2019 04:04 AM
The Word document is a flow document in which contents (paragraphs, tables, etc.,) will not be preserved page by page; instead the contents will be preserved sequentially section by section. Word viewer/editor renders the contents of the Word document page by page dynamically when opened for viewing or editing. This page wise rendered information will not be preserved in the saved file level. So, it is not feasible to find the specific page to insert the contents in the middle of Word document.
Alternatively, to achieve your requirement, we suggest you to set placeholder text in the Word document to find the specific paragraph and then insert contents of sub Word document (A3) into the main Word document (A4). Please find the sample application to meet your requirement and let us know if it helps: http://www.syncfusion.com/downloads/support/forum/143490/ze/GenerateWord-793614458 Note: Please find the input Word document in “Data” folder of above sample application.
In the above sample application, we have done the following things: 1. Loads the main Word document (A4 size). 2. Find the place holder and split into two sections. 3. Set header and footer specific to each sections, to preserve properly once merged. 4. Loads the sub Word document (A3 size). 5. Inserts all sections of sub Word document into main Word document (in between the split section). 6. Saves the main Word document.