Merge VSTX

How to merge VSTX files in C#

GroupDocs.Merger allows developers to merge VSTX files when it’s needed to organize multiple VSTX 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 VSTX 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 VSTX files with several lines of C# code:

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

About VSTX File Format

Files with VSTX extensions are drawing template files created with Microsoft Visio 2013 and above. These VSTX files provide a starting point for creating Visio drawings, saved as VSDX files, with default layout and settings. In general, Visio files are used to create drawings that contain visual objects, flow charts, UML diagrams, information flow, organizational charts, software diagrams, network layout, database models, objects mapping, and other similar information.

Code Examples

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

Merge VSTX Live Demo

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

“Merge VSTX”