Serialization with StreamingContext in 4.2

Hi, I have some problems with serialization. I am using a class "ObjectSymbol" that I derived from Syncfusion.Windows.Formas.Diagram.Symbol. This node contains a BitmapNode and a TextNode as childs. The icon in BitmapNode and the text in TextNode are set dynamically from a SQLServer database. I want to save and load the diagram to the file system. When I reload the diagram I want to set icon and text from the database because I only store Ids. The problem is that I have no reference to my database object for reading data. In MSDN I found a sample using an object in StreamingContext that I can use in protected ObjectSymbol(SerializationInfo info, StreamingContext context) Because LoadBinary() has no StreamingContext I tried to add a new Member to a derived diagram, copied the original sourcecode of LoadBinary() and tried to add a StreamingContext to the BinaryFormatter. But this didn''t work because Diagram.Model is read only. Is there an other possibility than changing the icon and text after load? Does anybody have an idea? Regards Christian

1 Reply

AD Administrator Syncfusion Team July 10, 2006 07:01 PM UTC

Hi Christian, Thanks for sending the detailed informations regarding your requirements/issue. We are looking into your issue that you have raised here and will get back to you on this as soon as possible. Also if possible could you please post a small sample application that shows your code implementation? So that it will help us to resolve the issue soon. Thank you for your patience. Regards, Meera.

Loader.
Up arrow icon