Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Save the diagram to visio or svg format from silverlight (Read 3140 times)
todd h
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: Aug 20th, 2012
Save the diagram to visio or svg format from silverlight
Aug 20th, 2012 at 4:58am
Print Post  
Hi,
how can you save the silverlight diagram to svg or visio.

I saw the code documentation under "Exporting the Diagram" in the "MVC in the diagram programmers guide".  Could I mabey save the diagram as xml and load and convert in mvc or on the server side ?

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Save the diagram to visio or svg format from silverlight
Reply #1 - Aug 20th, 2012 at 7:37am
Print Post  
Hi,

The Silverlight control does not provide built-in support for exporting to SVG or Visio. You could export to Visio using the Diagram class from the mindfusion.diagramming.dll that comes with MindFusion's Windows Forms, ASP.NET and MVC libraries. The SaveToString and LoadFromString methods will help you transfer your diagrams from the Silverlight application to the server.

However, the default value of Diagram.MeasureUnit in DiagramLite - WpfPoint - is not supported yet by mindfusion.diagramming.dll, where it is declared as GDI+ GraphicsUnit. In order to load your diagrams on the server, you will have to temporarily change the unit, e.g. to Point, before calling SaveToString.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint