Microsoft® Visio File Splitting via .NET

Split single Visio document into different files using C# code within .NET based applications

 

.NET Visio Library is capable to split Visio document into multiple pages within .NET based applications. Supported file formats include VDW, VDX, VSD, VSDM, VSDX, VSS, VSSM,VSSX,VST,VSTM,VSTX,VSX,VTX.

Split Visio Document into Multiple Files

The simplest way to split Visio files page wise is, Accessing all pages via pages , Iterating through each page and calling the Copy method. Finally saving it into a specified path.

  • Load the Visio file with full path using diagram class .
  • Iterate throug each page
  • Create a new Diagram class object
  • Copy the page via Copy method
  • Call the Save() method and pass the file name (full path) having relevant SaveFormat.
C# Code to Split Visio Files