Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Error in Flowchart.NET 5  Help file (Read 3232 times)
Samun
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Jul 3rd, 2007
Error in Flowchart.NET 5  Help file
Sep 7th, 2007 at 10:11pm
Print Post  
Hello, I just found an inconsistency in the Flowchart.NET 5 Help file for the "SaveToString" method:

I.a.w. the help file, the method can be used as follows:
string SaveToString ();
string SaveToString (bool clearDirty);


Unfortunately, in the Flowchart.NET 5 API the real method (in VB.NET) is as follows:
SaveToString () as string;
SaveToString (format as Mindfusion.Diagramming.Savetostringformat, clearDirty as boolean) as string;


I'd like to know what the Savetostringformat is, perhaps it is useful but I canīt find it in the Help file...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Error in Flowchart.NET 5  Help file
Reply #1 - Sep 10th, 2007 at 6:52am
Print Post  
Hello,

You can use the following SaveToStringFormat values:

Base16
Base64
Xml
CompressedXml

Base16 and Base64 specify binary serialization. They correspond to what you could set via the FlowChart.SerializationOptions property in version 4. Base16 encodes each byte using two ASCII characters in the range [0-9,A-F], which was the only supported format in versions older than 4. Base64 encodes each 3 bytes using 4 ASCII characters. That was the default in versions 4.*

Xml and CompressedXml correspond to what you'd get using the XmlWriter.WriteToString(bool compressed) method.

Stoyan
  
Back to top
 
IP Logged
 
sarada
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Oct 21st, 2008
Re: Error in Flowchart.NET 5  Help file
Reply #2 - Oct 21st, 2008 at 8:55am
Print Post  
what does this mean base16 xml and all actually whats the purpose of this savetostring property whether it stores diagram view's flow chart infoemation or not plz tell me how to get the diagram's info in string format its urgent.
thank u in advance..........
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Error in Flowchart.NET 5  Help file
Reply #3 - Oct 21st, 2008 at 10:08am
Print Post  
If you want to get a human-readable string, you might use diagram.SaveToString(SaveToStringFormat.Xml). The rest of them encode the diagram information in a more compact format that you might use to store the diagram in a database for example.

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