Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FlowChart.NET to Visio Export (Read 1340 times)
joshpe
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Feb 2nd, 2007
FlowChart.NET to Visio Export
Feb 2nd, 2007 at 8:05pm
Print Post  
Is it possible to export a MindFusion.WebChart.FlowChart object to Visio?

I thought the MindFusion.Diagramming.Export.VisioExporter.Export Method would do it, but it only accepts MindFusion.FlowChartX.FlowChart objects.

I am using FlowChart.NET 4.2
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowChart.NET to Visio Export
Reply #1 - Feb 2nd, 2007 at 8:30pm
Print Post  
You could add a reference to the flowchart.net.dll to your project, and do the following:

MindFusion.FlowChartX.FlowChart fc = MindFusion.FlowChartX.FlowChart();
fc.LoadFromString(myWebChart.SaveToString());

VisioExport visio = new VisioExporter();
visio.TemplatePath = "path to the VisioExport.vxt file";
visio.Export(fc, "path to the .vdx file");

The Webchart and Flowchart.NET dlls are the same, only the Windows Forms references are removed from the former. We created Webchart because ASP.NET 1.0 could not work well with Windows Forms controls. Now ASP.NET 1.1 and 2.0 don't have any problems with Windows Forms, so you can stop using the Webchart.dll assembly altogether and just use the Flowchart.NET one.

Webchart.dll still runs a bit faster and requires fewer resources on the server, because ASP.NET loads WinForms assemblies in a new application domain, and runs a message queue for each WinForms control loaded.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint