Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Re: how to save diagram using diagram.savetostring (Read 1810 times)
sarada
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Oct 21st, 2008
Re: how to save diagram using diagram.savetostring
Oct 21st, 2008 at 6:35am
Print Post  
sarada wrote on Oct 21st, 2008 at 6:03am:
hi all i'm using mind fusion in my C#.net windows application.
My problem is i can save the and get back the data using
diagram.savetoxml(xmlFile); and
diagram.Loadfromxml(xmlFile);

I want the same thing to happen using savetostring but i'm not getting any diagram info so please help me out. How to save diagram in string format using diagram1.savetoxml();

and when i'm using it as
SavetoStrinFormat xmlstring=new SavetoStringFormat;

string xmldata=diagram1.savetostring(xmlstring,true);

xmldata string is empty.any solution for this


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to save diagram using diagram.savetostring
Reply #1 - Oct 21st, 2008 at 8:57am
Print Post  
Hi,

SavetoStringFormat is an enumeration, and you should call SaveToString like this to get an XML string:

diagram.SaveToString(SavetoStringFormat.Xml);

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