Merge ONE

How to merge ONE files in C#

GroupDocs.Merger allows developers to merge ONE files when it’s needed to organize multiple ONE files into single document or send fewer attachments etc. And you can do this without¬†any third-party software or manual work involved. With GroupDocs.Merger it is possible to combine ONE documents of any size and structure - all text, images, tables, graphs, forms and other content will be preserved.

The following example demonstrates how to merge ONE files with several lines of C# code:

  • Create an instance of Merger class and pass source ONE file path as a constructor parameter. You may specify absolute or relative file path as per your requirements.
  • Add another ONE file to merge with Join method. Repeat this step for other ONE documents you want to merge.
  • Call Merger class Save method and specify the filename for the merged ONE file as parameter.
// Load the source ONE file
using (Merger merger = new Merger(@"c:\sample1.one"))
{
    // Add another ONE file to merge
    merger.Join(@"c:\sample2.one");
    // Merge ONE files ans save result
    merger.Save(@"c:\merged.one");
}

About ONE File Format

Files with .ONE extension are created by Microsoft OneNote application. OneNote lets you gather information using the application as if you are using your draftpad for taking notes. OneNote files can contain different elements that can be placed at non-fixed locations on document pages. These elements may contain text, digitized handwriting, and objects copied from other applications including images, drawings and multimedia (audio/video) clips.

Code Examples

Please find more use-cases and complete C# sources of our backend and frontend examples and try them for free!

Merge ONE Live Demo

GroupDocs.Merger for .NET provides an online ONE Merger App, which allows you to try it for free and check its quality and accuracy.

“Merge ONE”