1
votes

I have a basic question about developing Visio VSTO AddIn using VS 2019. Is it possible to programmatically save a Visio Page in any other format than *.vsd or *.vsdx? The Visio UI allows "save as" a scalable vector graphic (SVG). However, looking at the Visio object model reference I cannot see any way to save in a format other than *.vsd / *.vsdx? Any help would be gratefully received.

Thanks, Andrew

2
Here's a massive programming tip, the MS Object Model is the same for VBA as it is with C# (applies to almost any object model), there's some slight syntax differences but it's easy to convert. Give this a go with this example: stackoverflow.com/a/31791331/495455 - Jeremy Thompson

2 Answers

1
votes

You need to use "Export" instead of "Save": https://docs.microsoft.com/en-us/office/vba/api/visio.page.export

You could also try my extension for extended SVG export :D

0
votes

I highly recommend taking a look at Nikolay's SVG Publish extension for Visio, this SVG export add-in provides you with many more useful export options that Visio itself does not offer.

https://unmanagedvisio.com/products/svg-publish/