We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Serialization with StreamingContext in 4.2

Thread ID:

Created:

Updated:

Platform:

Replies:

46278 Jul 10,2006 08:40 AM Jul 10,2006 03:01 PM Windows Forms 1
loading
Tags: Diagram
Christian Lützenkirchen
Asked On July 10, 2006 08:40 AM

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

Administrator [Syncfusion]
Replied On July 10, 2006 03:01 PM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;