Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can't get Visio2013Exporter to work (Read 1031 times)
Niels
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Nov 17th, 2022
Can't get Visio2013Exporter to work
Nov 17th, 2022 at 7:31am
Print Post  
Hi, I need help with the Visio2013Exporter, I can't get it to work.

Code
Select All
MindFusion.Diagramming.Export.Visio2013Exporter visioExporter = new MindFusion.Diagramming.Export.Visio2013Exporter();
visioExporter.TemplatePath = @"C:\Users\blabla\Desktop\Visio2013.vtx";
visioExporter.Export(_diagram, @"C:\Users\blabla\Desktop\out.vsdx");
 



When leaving out the second line, I get an error message saying that the file "Visio2013.vxt" could not be found. Shouldn't it be vtx instead of vxt, as vtx files are Visio templates in XML format?

And where do I get valid vtx files? It seems that I can not generate them from Visio. I tried with different template files (a downloaded vtx, renamed it to vxt, etc.) but always get an "System.IO.IOException: An attempt was made to move the file pointer before the beginning of the file" exception.".

Any help is highly appreciated, thanks! N
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Can't get Visio2013Exporter to work
Reply #1 - Nov 17th, 2022 at 8:17am
Print Post  
Hi,

Try the Redistributable\Visio2013.vxt file from installation. It's not in Visio Template vtx format, but a vsdx one actually, which the exporter uses to recreate all the Visio boilerplate (directory organization in the zip, etc).

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Niels
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Nov 17th, 2022
Re: Can't get Visio2013Exporter to work
Reply #2 - Nov 17th, 2022 at 8:24am
Print Post  
Thanks, this works very well!
N
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint