We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Split Ms Word Multi Page Document into Separate Files (10 Page Document into 10 files - 1 Page each)

Thread ID:





131777 Jul 26,2017 05:02 PM UTC Jul 27,2017 01:15 PM UTC WinForms 1
Tags: DocIO
Asked On July 26, 2017 05:02 PM UTC

Dears, How can we Split Ms Word Multi Page (having Headers & Footers) Document into Separate Files (10 Page Document into 10 files - 1 Page each).Thanks,

Sethumanikkam Yogendran [Syncfusion]
Replied On July 27, 2017 01:15 PM UTC

Hi Nilofer,

Thank you for contacting Syncfusion support.

The Word document is a flow document in which contents will not be preserved page by page; instead the contents will be preserved sequentially section by section. Each section may extend to various pages based on its contents like table, text, images etc..

Please refer the below KB article which explains the same:

Hence it is not directly possible to access the Word document contents page by page, the same holds in Essential DocIO. As a workaround, you can split the contents of each page as separate section in the input Word document and using DocIO can split into multiple files by sections instead of pages.

Please refer the below code snippet with attached template, and let us know if this helps you.
// Loads an existing input document.
WordDocument mainDocument = new WordDocument("Template.docx");
// Iterates each section from main document.
foreach (WSection section in mainDocument.Sections)

    // Creates new Word document.
    WordDocument currDocument = new WordDocument();
    // Clones section to current document.
    // Saves Word document and closes the WordDocument instance.
    currDocument.Save("Template_" + mainDocument.ChildEntities.IndexOf(section) + ".docx");

Please let us know if you have any other questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon