English Indonesia Tiếng Việt عربي Español Italiano Türk فارسی Français Português Русский ไทย

Splitting Word Documents in C#

Splitting Word documents into parts using Wordize for .NET is simple and efficient. Extract specific page ranges from Word files, divide documents by headings or chapters, create smaller documents for easy email sharing, all while precisely preserving the original formatting and structure. Try our online demonstration to see how the Word document splitting function works in real-time. Upload your Word document, set splitting parameters, and download the results to verify everything yourself. The demonstration also provides a C# code example to show you the programmatic implementation.

Key features

  • Split Word documents into individual pages or page ranges.
  • Split content based on headings or sections of the Word document.
  • Complete preservation of original formatting, fonts, and styles in output files.

Typical usage scenarios

  • Extracting individual chapters or sections of Word documents for review or editing.
  • Generating thematic guides and manuals.
  • Sharing relevant parts of documents with colleagues.
  • Organizing large reports or manuals into structured groups of files.

Experience professional Word document splitting capabilities right now. Use the online demo to test quick and accurate Word document splitting. Upload your Word document and observe how the C# code example changes depending on the parameters.

C#
Run code
Upload the document you want to split
Select the target format from the list
using Wordize.Splitting;

Splitter.Split("Input.docx", "Output_page.docx", 
    new SplitOptions()
    { 
        SplitCriteria = SplitCriteria.Page
    }
);
using Wordize.Splitting;

Splitter.Split("Input.docx",  "Output_section.docx", 
    new SplitOptions()
    { 
        SplitCriteria = SplitCriteria.SectionBreak
    }
);
Run code

How to split Word in C#

  1. Install the C# library for programmatically splitting Word files.
  2. Add a reference to the library (import the library) in your C# project.
  3. Call the Split method to extract pages from Word.

System Requirements

Our product is fully cross-platform and supports all major .NET implementations:

  • .NET ≥ 5.0
  • .NET Core ≥ 2.0
  • .NET Standard ≥ 2.0
  • .NET Framework ≥ 3.5
  • MonoMac
  • MonoAndroid
  • Xamarin

As far as .NET code doesn't depend on the underlying hardware or operating system, but only on a Virtual Machine, you are free to develop any kind of software for Windows, macOS, Android, iOS and Linux. Just make sure you have installed the corresponding version of .NET Framework, .NET Core, Windows Azure, Mono or Xamarin.

We recommend using Microsoft Visual Studio, Xamarin, and MonoDevelop integrated development environments to create C#, F#, VB.NET applications.

5%