Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can't export to visio (Read 6706 times)
lemon
YaBB Newbies
*
Offline



Posts: 28
Joined: Aug 31st, 2005
Can't export to visio
Oct 28th, 2005 at 9:51am
Print Post  
Hallo back  Wink

Why is the following code wrong?

MindFusion.Diagramming.Export.VisioExporter exp;
exp.Export(_flowChart, "C:\\file\\FlowChart.vdx");

Error: System.NullReferenceException

thx for support
  
Back to top
 
IP Logged
 
Iva
Junior Member
**
Offline


MindFusion support

Posts: 55
Joined: Aug 6th, 2005
Re: Can't export to visio
Reply #1 - Oct 28th, 2005 at 10:26am
Print Post  
Hello,

It seems 'exp' is not initialized. Try with this

MindFusion.Diagramming.Export.VisioExporter exp = new MindFusion.Diagramming.Export.VisioExporter();
exp.Export(_flowChart, "C:\\file\\FlowChart.vdx");

  
Back to top
 
IP Logged
 
lemon
YaBB Newbies
*
Offline



Posts: 28
Joined: Aug 31st, 2005
Re: Can't export to visio
Reply #2 - Oct 28th, 2005 at 10:36am
Print Post  
thx.

Now I have no error. But also no file in my folder  ???
  
Back to top
 
IP Logged
 
Iva
Junior Member
**
Offline


MindFusion support

Posts: 55
Joined: Aug 6th, 2005
Re: Can't export to visio
Reply #3 - Oct 28th, 2005 at 10:45am
Print Post  
Hello,

There is a 'VisioExport.vxt' file that must be in the current directory when exporting. It contains an empty Visio XML document, which the exporter fills in with the diagram data. Make sure that file is in the application's current directory or where the exe is.

There was a bug that prevented the exporter find the template file in some situations:

http://mindfusion.org/cgi/Forum/YaBB.pl?board=fcnet_disc;action=display;num=1129...

We fixed that and sent patched versions to registered customers, but the trial version is not fixed yet.
  
Back to top
 
IP Logged
 
lemon
YaBB Newbies
*
Offline



Posts: 28
Joined: Aug 31st, 2005
Re: Can't export to visio
Reply #4 - Oct 28th, 2005 at 11:32am
Print Post  
No I doesn't work

We have got the new dll Version (18.Oct)

I create a .vtx file with visio and put it in the exe directory and in \bin

I  tryed to export my vds.file to \bin -> nothing
and than to exe dir -> nothing

?
What's wrong
  
Back to top
 
IP Logged
 
Iva
Junior Member
**
Offline


MindFusion support

Posts: 55
Joined: Aug 6th, 2005
Re: Can't export to visio
Reply #5 - Oct 28th, 2005 at 11:36am
Print Post  
You should not create that file with Visio but use the one provided with FlowChart.NET. It is located in \Program Files\MindFusion\FlowChart.NET, just copy it to the folder where the .exe file is located.
  
Back to top
 
IP Logged
 
lemon
YaBB Newbies
*
Offline



Posts: 28
Joined: Aug 31st, 2005
Re: Can't export to visio
Reply #6 - Oct 28th, 2005 at 12:37pm
Print Post  
hi

I can't open the new file in visio without losing informations

I have exported the flowchart in vdx. Wrong format?
  
Back to top
 
IP Logged
 
Iva
Junior Member
**
Offline


MindFusion support

Posts: 55
Joined: Aug 6th, 2005
Re: Can't export to visio
Reply #7 - Oct 28th, 2005 at 1:53pm
Print Post  
Hi, What information is lost exactly ?
  
Back to top
 
IP Logged
 
lemon
YaBB Newbies
*
Offline



Posts: 28
Joined: Aug 31st, 2005
Re: Can't export to visio
Reply #8 - Oct 28th, 2005 at 2:36pm
Print Post  
Hallo

e.p.
the forms from the nodes
the font(arial) looks not like in FC
  
Back to top
 
IP Logged
 
Iva
Junior Member
**
Offline


MindFusion support

Posts: 55
Joined: Aug 6th, 2005
Re: Can't export to visio
Reply #9 - Oct 28th, 2005 at 3:07pm
Print Post  
Do you use custom shape definitions in your application ? At this time only the predefined Flowchart.NET shapes can be exported. If some of the predefined shapes are not exported, can you let us know their IDs or upload a diagram file here so we check them ourselves:

http://mindfusion.org/cgi/HelpDesk/index.php

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