This article is written to discuss how to merge Visio files in C#. It contains the stepwise guide as well as a code snippet to combine Visio files in C#. The input files can be in any of the formats like VSDX or VSD.
Steps to Merge Visio Files in C#
- Install the Aspose.Diagram API to append Visio files together
- Load the input Visio files using the Diagram class
- Merge the files with the Combine method
- Save the output Visio file
These steps summarize how to combine multiple Visio files into one in C#. It appends a Visio diagram to another file as a separate page which can enable you to access different information within the same file. Simply load the input Visio files using the Diagram class, append them together and save the output file as per your requirements.
Code to Merge Visio Files in C#
This code snippet can be used to merge Visio files into one in C#. However, it is a basic feature demonstration that you can change or enhance based on your needs. You may opt for different overload methods of Diagram class for loading the source files to use options like setting the system culture info, setting the interrupt monitor, and specifying the pages to load to name a few.
This tutorial has covered the details to merge VSDX files in C#. On the other hand, if you want to convert Visio files to a PNG image, read the article on how to convert Visio to PNG in C#.