Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Error in saving XML of a diagram in Silverlight (Read 1464 times)
praveenbattula
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 22
Joined: Apr 6th, 2010
Error in saving XML of a diagram in Silverlight
Apr 13th, 2010 at 11:09am
Print Post  
When I use the method, SaveToXml() method, I am getting the below exception.

The given key was not present in the dictionary

Code used is,


           Stream str = new MemoryStream();
           _diagram.SaveToXml(str);

Can someone help to solve this problem? How to fix this? My goal is showing the diagram in full screen mode.

Default diagram component don't have show full screen option, I need to get the xml and generate the diagram on a popup control and show that popup control and apply application full screen.

Please it's urgent and any information is greatly appreciated.

-PRaveen
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Error in saving XML of a diagram in Silverligh
Reply #1 - Apr 13th, 2010 at 11:51am
Print Post  
If using custom DiagramItem-derived classes, call the static Diagram.RegisterItemClass method to enable their serialization.

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