Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Export flowchart to visio (Read 5975 times)
Rahmy Mahmoud
Guest


Export flowchart to visio
Mar 6th, 2006 at 5:23am
Print Post  
Hi everyone

Im using the trial version of Flowchart.net, im trying to export my chart to visio file (*.vdx) using the visioExporter assembly as fllowes.

FlowChart fc = (FlowChart)Session["fcx"];
VisioExporter ve = new VisioExporter();
ve.CreateVisioGroups = true;
ve.Export(fc,"chart.vdx");

But it doesn work and doesn return any exception.

Any help is appreciated.
Bye
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export flowchart to visio
Reply #1 - Mar 6th, 2006 at 7:25am
Print Post  
Hi,

Do you use the WebChart library ? At this time the import/export components work only with the Windows Forms control.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export flowchart to visio
Reply #2 - Mar 27th, 2006 at 9:06am
Print Post  
... or if you use the FlowChart.NET control there, make sure the VisioExport.vxt file is in the same folder where the assemblies are.
  
Back to top
 
IP Logged
 
Evan Barrett
Guest


Re: Export flowchart to visio
Reply #3 - Apr 1st, 2006 at 12:26am
Print Post  
I am also testing the Visio Exporter as well.  My application is web based, but I have finished converting all the objects from WebChart to FlowChartX.  The diagram prints nicely on the web page.  I have added an Export button to create the Visio diagram.  Here is the code that I have in the function for the button:

Private Sub btnVisio_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnVisio.Click
       fc = CType(Me.Session.Item("fcx"), MindFusion.FlowChartX.FlowChart)
       Dim VisioFile As New MindFusion.Diagramming.Export.VisioExporter
       VisioFile.ExportTablesAsGroups = True
       VisioFile.CreateVisioGroups = True
       VisioFile.Export(fc, "c:\export\test.vdx")

End Sub

I don't get any errors when I click the button, but it seems that it never creates the file.  I have put the VisioExport.vxt in the web page's bin folder (where the FlowChart.Net.dll file resides) as well as the c:\export folder.  I have also tried just using "c:\export" instead of "c:\export\test.vdx" for the vdxPathName parameter for the export function. Is there anything else that I am missing?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export flowchart to visio
Reply #4 - Apr 3rd, 2006 at 6:02am
Print Post  
Does the ASP.NET process have write access to that folder ?
  
Back to top
 
IP Logged
 
itsky
YaBB Newbies
*
Offline



Posts: 6
Joined: Apr 1st, 2006
Re: Export flowchart to visio
Reply #5 - Apr 3rd, 2006 at 1:16pm
Print Post  
I did change the permissions on the c:\export folder to allow ASPNET write permissions.  Still would not work.  I then added "everyone" write permissions in the folder.  I can successfully create .svg files, but still no luck with the Visio Exporter. 

Does the VisioExporter log any kind of error message at all?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export flowchart to visio
Reply #6 - Apr 3rd, 2006 at 1:23pm
Print Post  
Could you also take a look at the VisioExport.vxt properties - does the aspnetwp process have read access to that file ?
  
Back to top
 
IP Logged
 
itsky
YaBB Newbies
*
Offline



Posts: 6
Joined: Apr 1st, 2006
Re: Export flowchart to visio
Reply #7 - Apr 3rd, 2006 at 1:32pm
Print Post  
The VisioExport.vxt file has the <local>\ASPNET account with Change permissions in both c:\export and the \bin folder for the web application.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export flowchart to visio
Reply #8 - Apr 3rd, 2006 at 2:03pm
Print Post  
Ok, our developer traced through the Export method code and found there is some problem loading the template file while running in IIS. He will fix that in awhile.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export flowchart to visio
Reply #9 - Apr 3rd, 2006 at 2:38pm
Print Post  
ASP.NET seems to copy the Web application assemblies to a temporary path and runs it from there, at least in debug mode, so the VisioExporter cannot find the VisioExport.vxt file. We have added a TemplatePath property which you must set to the full path of the .vxt file, and the exporter works fine when the path is set explicitly. If you need to have the fix now, let me know for which version of the .NET runtime you need the flowchart assemblies.
  
Back to top
 
IP Logged
 
itsky
YaBB Newbies
*
Offline



Posts: 6
Joined: Apr 1st, 2006
Re: Export flowchart to visio
Reply #10 - Apr 3rd, 2006 at 2:55pm
Print Post  
If I could get the fix now, I'd appreciate it.  I'm running the 1.1 framework currently.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export flowchart to visio
Reply #11 - Apr 3rd, 2006 at 3:23pm
Print Post  
I see you are our registered customer, I will email you the full version of the control in a few minutes.
  
Back to top
 
IP Logged
 
itsky
YaBB Newbies
*
Offline



Posts: 6
Joined: Apr 1st, 2006
Re: Export flowchart to visio
Reply #12 - Apr 3rd, 2006 at 3:27pm
Print Post  
Thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint