Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to use the "SaveToStream" method? (Read 2337 times)
sweetdeath
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Mar 16th, 2011
How to use the "SaveToStream" method?
Mar 24th, 2011 at 9:44am
Print Post  
Hi,Stoyan.Suppose I have manually created many TableNodes and Links in the diagram.How can I use the "SaveToStream" method save it into a binary file?
In addition,how can I load the binary file when I open a new diagram? I tried manay times,but I can't work well.The question puzzled me! ???
Could you use the code example to help me make it?
Thanks a lot!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to use the "SaveToStream" method
Reply #1 - Mar 24th, 2011 at 9:51am
Print Post  
Hi,

Can't you use the SaveToFile and LoadFromFile methods if you need to save in files?

Stoyan
  
Back to top
 
IP Logged
 
sweetdeath
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Mar 16th, 2011
Re: How to use the "SaveToStream" method
Reply #2 - Mar 24th, 2011 at 11:37am
Print Post  
Hi,Stoyan.If I store all the items of the diagram in a "*.fns" file and load it in another diagram. In this case, will the items be changed programmatically via methods and properties in the new diagram?
By the way,how to set the tableNode only move,but can't resize?
Thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to use the "SaveToStream" method
Reply #3 - Mar 24th, 2011 at 11:55am
Print Post  
Hi,

1. You'll still be able to modify the items programmatically if that's what you are asking.

2. Set table.EnabledHandles = Move.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sweetdeath
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Mar 16th, 2011
Re: How to use the "SaveToStream" method
Reply #4 - Mar 24th, 2011 at 12:01pm
Print Post  
It works as you said!Thanks! Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint