Convert .vsd file to .vdx

xiaohan2012 picture xiaohan2012 · Sep 25, 2011 · Viewed 7.4k times · Source

How can I convert Visio binary file (.vsd extension) to Visio xml file(.vdx extension) in programming?

Does Microsoft provide such C/C++ library ?

Answer

saveenr picture saveenr · Sep 25, 2011

Option 1: Use Visio application programmatically

Any .NET language can control Visio through it's COM automation interfaces and use its SaveAs method.

mydoc.SaveAs("d:\\foo.vdx");

SaveAs method on MSDN

This option, obviously requires the Visio application to be installed.

Option 2: Use a third party library

I've never used it but apparently Aspose.Diagram for .NET can be used to convert these files.

Microsoft Library?

To answer your last question: No, Microsoft does not provide a C/C++ library to perform this conversion.