Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic JDiagram version in NetDiagram v1.0.2 (Read 3520 times)
oakenshield
YaBB Newbies
*
Offline



Posts: 19
Location: France
Joined: Sep 21st, 2007
JDiagram version in NetDiagram v1.0.2
Nov 22nd, 2007 at 8:06am
Print Post  
Hi,

I've just upgraded my NetDiagram version to the 1.0.2 one, however when I save a diagram in applet mode with the javascript function "saveToString( false )", the following token appears in the output xml file :

<Diagram Version="11">

I find it strange because when I'm in imagemap mode, the token

<Diagram Version="12">

appears in the output file (which has a different structure on top of that)

Is it normal ? I have difficulties to load in imagemap mode a xml file saved from the applet mode, is this the cause ? I have the error message :

"Unrecognized brush token"

Thanks for your replies.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: JDiagram version in NetDiagram v1.0.2
Reply #1 - Nov 22nd, 2007 at 8:50am
Print Post  
Hi,

We have introduced the new XML format with version 5 of our Windows Forms control. Now we have added the new SaveToXml and LoadFromXml methods to NetDiagram in order to support that new format.

You can still save in the older format using the XmlWriter class, though we will remove it in one of the next releases. The control has a read-support for all previous revisions of the XML format, so by calling the LoadFromXml method in ImageMap mode you can still load V11 files saved by the applet. We'll add support for the new XML format to JDiagram as well in its next release.

Stoyan
  
Back to top
 
IP Logged
 
oakenshield
YaBB Newbies
*
Offline



Posts: 19
Location: France
Joined: Sep 21st, 2007
Re: JDiagram version in NetDiagram v1.0.2
Reply #2 - Nov 23rd, 2007 at 7:04am
Print Post  
Hi,

Thanks for this piece of information. Here is the precise description of my problem with the XML files :

When I try to load in v11 imagemap mode a xml file saved from the v11 applet mode, the error "Unrecognized brush token" appears. If I delete each "<tag>" element in the xml file, the loading works well. I tried to use the DeserializeTag event, but it's not catched, any idea about my problem ?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: JDiagram version in NetDiagram v1.0.2
Reply #3 - Nov 23rd, 2007 at 9:05am
Print Post  
Hi,

DeserializeTag is raised only by XmlReader, which you can still use to load files saved by the applet. So if you are using custom tag serialization, do not use LoadFromXml just yet. In the following few days we are going to implement the new XML format in the applet too, and then you will be able to use the new methods in all situations.

Stoyan
  
Back to top
 
IP Logged
 
oakenshield
YaBB Newbies
*
Offline



Posts: 19
Location: France
Joined: Sep 21st, 2007
Re: JDiagram version in NetDiagram v1.0.2
Reply #4 - Jan 7th, 2008 at 12:19pm
Print Post  
Hi,

I just would like to know if the next version of NetDiagram will be released soon, I'm waiting for the complete new XML format compatibility !

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: JDiagram version in NetDiagram v1.0.2
Reply #5 - Jan 7th, 2008 at 2:15pm
Print Post  
Hi,

V1.0.3 should be available by the end of January. I can send you a pre-release version if you need it urgently.

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