Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Flowchart.net - aspx (Read 5183 times)
dmcdaniel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: May 31st, 2007
Flowchart.net - aspx
May 31st, 2007 at 7:08pm
Print Post  
Other than using the image functionality.. Can any of the controls here be used on a web page with more functionality?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart.net - aspx
Reply #1 - May 31st, 2007 at 7:42pm
Print Post  
We have released an ASP.NET diagramming control just a few weeks ago:
https://mindfusion.org/NetDiagramTrial.zip

You could also use in a web page the applet from this library:
https://mindfusion.eu/JDiagramTrial.zip

Stoyan
  
Back to top
 
IP Logged
 
rolend
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Dec 20th, 2005
Re: Flowchart.net - aspx
Reply #2 - Jun 20th, 2007 at 7:17am
Print Post  
would you please post some example for JDiagram with aspx websolution?

Our webpage use flowchart.net.dll to display flowchart, how to change to use JDiagram to display flowchart?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart.net - aspx
Reply #3 - Jun 20th, 2007 at 7:34am
Print Post  
That's what our NetDiagram control does essentially. You might take a look at the HTML and JavaScript generated when you run one of its sample projects, e.g. OrgBrowser. The diagram data is transferred as zipped XML data there, using the ZipStream classes availabe with both .NET 2 and Java.

Stoyan
  
Back to top
 
IP Logged
 
rolend
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Dec 20th, 2005
Re: Flowchart.net - aspx
Reply #4 - Jun 20th, 2007 at 11:23pm
Print Post  
They are different,NetDiagram put dll on webpage.

Could you guide me how to use JDiagram and Flowchart.net.dll (webchart.dll) to implement asp.net solution?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart.net - aspx
Reply #5 - Jun 21st, 2007 at 6:03am
Print Post  
NetDiagram doesn't use a dll, but the JDiagram applet packed in a .jar file. You could load the applet like this:

Code
Select All
<applet id="fc" code="com.mindfusion.jdiagram.FlowChartApplet.class" archive="JDiagram.jar" width="640" height="480" mayscript>
	<PARAM NAME="BoxCreated" VALUE="onBoxCreated">
	<PARAM NAME="BoxCreating" VALUE="onBoxCreating">
</applet>
 



The PARAM tags let you handle events on the client side using JavaScirpt functions, unlike an OBJECT tag that loads Flowchart.NET.dll.

To access the JDiagram API functions, you must get the FlowChart object from the applet, e.g.

Code
Select All
GetElementById('fc').getFlowChart().createBox(0, 0, 50, 50);
 



The SaveToString and LoadFromString methods of the applet object (return by GetElementById('fc')) let you save or load the diagram contents as zipped and base64 encoded XML data. You can use them on the client side in a manner similar to the Flowchart.NET.dll-in-an-OBJECT scenario.

The difference is that on the server side you cannot use FlowChart.SaveToString and LoadFromString, but must use System.Convert.FromBase64String(), System.Convert.ToBase64String() and GZipStream, all available from the .NET base class library. They let you encode or decode the diagram XML data to/from the format that the applet string-serialization methods use. The actual XML content is the one you get from the Flowchart.NET's XmlWriter and can read using XmlReader.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart.net - aspx
Reply #6 - Jun 21st, 2007 at 6:11am
Print Post  
The XmlReader.ReadFromString and XmlWriter.WriteToString methods from the latest version 4.3.1 actually implement the base64 encoding and compression, so you don't have to deal with that. Just call XmlWriter.WriteToString(true) to get a string that can be loaded in the JDiagram applet. You can load that string using either FlowChartApplet.loadFromString(), or by passing it via a PARAM tag with NAME="DiagramData" and VALUE= the string.

Stoyan
  
Back to top
 
IP Logged
 
rolend
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Dec 20th, 2005
Re: Flowchart.net - aspx
Reply #7 - Jun 25th, 2007 at 1:32am
Print Post  
I have implemented a solution by webapp sample,
but the image can't display?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart.net - aspx
Reply #8 - Jun 25th, 2007 at 8:20am
Print Post  
Is it saved successfully if you call the Image.Save method instead of sending the image data to the browser? If you are trying to create a PNG image, see the posts here:

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

Stoyan
  
Back to top
 
IP Logged
 
rolend
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Dec 20th, 2005
Re: Flowchart.net - aspx
Reply #9 - Jun 25th, 2007 at 10:41pm
Print Post  
webapp sample will show icon , i don't need generate image ,  i just need  to call fc.savetostring() and  JDiagram.loadfromstring()  by a hidden field.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart.net - aspx
Reply #10 - Jun 26th, 2007 at 5:49am
Print Post  
If you mean that the Box.Images are not shown when loading them in JDiagram, that probably happens because Java does not support some image formats that .NET supports, e.g. ico and bmp. You can only load jpeg, gif and png images in the JDiagram applet.

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