I wrote a small C# Visio Addin which should export the current page of the Visio document as *.svg whenever the open Visio file is saved:
Application.ActivePage.Export("C:\\Users\\x\\Desktop\\example.svg");
Unfortunately, when it runs this line it gets stuck in Visio with a window displaying "Preparing to save..." and a progress bar at 88%.
I tried several things (e.g. different target paths, running as administrator etc.) but nothing helped. It always gets stucked there and I can only click abort then.
When I do the same manually in Visio (Save as svg) then it works without any issue.
The same code with e.g. *.png instead of *.svg works well.
Do you have any idea what could be the problem here?
Thanks.