Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Export to SVG (Read 7425 times)
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Export to SVG
Oct 16th, 2015 at 4:51am
Print Post  
Hello Stoyo  Smiley

I would like to save a diagram to memory in SVG format to be able to load it with a different control.
I'm aware of SvgExport, but do I have any option to do this without saving to a file first?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export to SVG
Reply #1 - Oct 16th, 2015 at 9:59am
Print Post  
Hi Carlos,

Currently there's no support for generating SVG without using files. You will have to export a temp file, read it back as a string and delete.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: Export to SVG
Reply #2 - Oct 19th, 2015 at 3:16am
Print Post  
The SvgExporter recently merged with FlowChartX causes a big crash when I try to call the Export method.
But an old one that I still have on my disk (FcxSvgExport.dll version 1.0.3, from 2007) works fine.

I'll try now to use a named pipe to intercept the writing to a file and redirect it to a memory buffer.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export to SVG
Reply #3 - Oct 19th, 2015 at 8:27am
Print Post  
Please save and attach the diagram that causes crash.
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: Export to SVG
Reply #4 - Oct 19th, 2015 at 12:00pm
Print Post  
The diagram is saved as string in a db (SQLite) and loaded with LoadFromString.
I attached both the string and the SVG exported with FcxSvgExport.dll
  

fcx.zip ( 4 KB | 335 Downloads )
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export to SVG
Reply #5 - Oct 29th, 2015 at 6:33pm
Print Post  
This build should fix the integrated exporter:
https://mindfusion.eu/_beta/fcx492.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: Export to SVG
Reply #6 - Oct 29th, 2015 at 11:57pm
Print Post  
Yes, it solves it, thank you.

<snif> Still not Pipes allowed, tho </snif>  Sad
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint